diff options
Diffstat (limited to 'crates/ide_assists/src')
-rw-r--r-- | crates/ide_assists/src/handlers/remove_dbg.rs | 38 |
1 files changed, 17 insertions, 21 deletions
diff --git a/crates/ide_assists/src/handlers/remove_dbg.rs b/crates/ide_assists/src/handlers/remove_dbg.rs index 2bf005913..2862cfa9c 100644 --- a/crates/ide_assists/src/handlers/remove_dbg.rs +++ b/crates/ide_assists/src/handlers/remove_dbg.rs | |||
@@ -475,33 +475,29 @@ fn foo() { | |||
475 | ); | 475 | ); |
476 | check_assist( | 476 | check_assist( |
477 | remove_dbg, | 477 | remove_dbg, |
478 | r#"fn foo() { | 478 | r#" |
479 | let test = $0dbg!(); | 479 | fn foo() { |
480 | }"#, | 480 | let test = $0dbg!(); |
481 | r#"fn foo() { | ||
482 | let test = (); | ||
483 | }"#, | ||
484 | ); | ||
485 | check_assist( | ||
486 | remove_dbg, | ||
487 | r#"fn foo() { | ||
488 | $0dbg!() | ||
489 | }"#, | 481 | }"#, |
490 | r#"fn foo() { | 482 | r#" |
483 | fn foo() { | ||
484 | let test = (); | ||
491 | }"#, | 485 | }"#, |
492 | ); | 486 | ); |
493 | check_assist( | 487 | check_assist( |
494 | remove_dbg, | 488 | remove_dbg, |
495 | r#"fn foo() { | 489 | r#" |
496 | let t = { | 490 | fn foo() { |
497 | println!("Hello, world"); | 491 | let t = { |
498 | $0dbg!() | 492 | println!("Hello, world"); |
499 | }; | 493 | $0dbg!() |
494 | }; | ||
500 | }"#, | 495 | }"#, |
501 | r#"fn foo() { | 496 | r#" |
502 | let t = { | 497 | fn foo() { |
503 | println!("Hello, world"); | 498 | let t = { |
504 | }; | 499 | println!("Hello, world"); |
500 | }; | ||
505 | }"#, | 501 | }"#, |
506 | ); | 502 | ); |
507 | } | 503 | } |