From f9d17c6d7c117b004dbf56d49718c729b9b7f58a Mon Sep 17 00:00:00 2001 From: ivan770 Date: Mon, 29 Mar 2021 16:00:09 +0200 Subject: Apply test style fixes to all empty remove_dbg tests --- crates/ide_assists/src/handlers/remove_dbg.rs | 38 ++++++++++++--------------- 1 file 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() { ); check_assist( remove_dbg, - r#"fn foo() { -let test = $0dbg!(); -}"#, - r#"fn foo() { -let test = (); -}"#, - ); - check_assist( - remove_dbg, - r#"fn foo() { -$0dbg!() + r#" +fn foo() { + let test = $0dbg!(); }"#, - r#"fn foo() { + r#" +fn foo() { + let test = (); }"#, ); check_assist( remove_dbg, - r#"fn foo() { -let t = { - println!("Hello, world"); - $0dbg!() -}; + r#" +fn foo() { + let t = { + println!("Hello, world"); + $0dbg!() + }; }"#, - r#"fn foo() { -let t = { - println!("Hello, world"); -}; + r#" +fn foo() { + let t = { + println!("Hello, world"); + }; }"#, ); } -- cgit v1.2.3