aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan770 <[email protected]>2021-03-29 15:00:09 +0100
committerivan770 <[email protected]>2021-03-29 15:00:09 +0100
commitf9d17c6d7c117b004dbf56d49718c729b9b7f58a (patch)
treee337934c44e15bb4c931a92d105e17329b799e1d
parent8e5611442e93b7a89ff47c2d3e19ceb3d6b75f25 (diff)
Apply test style fixes to all empty remove_dbg tests
-rw-r--r--crates/ide_assists/src/handlers/remove_dbg.rs38
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#"
479let test = $0dbg!(); 479fn foo() {
480}"#, 480 let test = $0dbg!();
481 r#"fn foo() {
482let test = ();
483}"#,
484 );
485 check_assist(
486 remove_dbg,
487 r#"fn foo() {
488$0dbg!()
489}"#, 481}"#,
490 r#"fn foo() { 482 r#"
483fn 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#"
496let t = { 490fn 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#"
502let t = { 497fn foo() {
503 println!("Hello, world"); 498 let t = {
504}; 499 println!("Hello, world");
500 };
505}"#, 501}"#,
506 ); 502 );
507 } 503 }