Skip to content

Commit 1c0eed5

Browse files
committed
undo unnecessary test changes
1 parent cc6eee1 commit 1c0eed5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

crates/ide_assists/src/handlers/add_missing_match_arms.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,8 @@ mod foo { pub enum E { X, Y } }
10061006
use foo::E::X;
10071007
10081008
fn main() {
1009-
match X $0 {
1009+
match X {
1010+
$0
10101011
}
10111012
}
10121013
"#,
@@ -1015,7 +1016,7 @@ mod foo { pub enum E { X, Y } }
10151016
use foo::E::X;
10161017
10171018
fn main() {
1018-
match X {
1019+
match X {
10191020
$0X => todo!(),
10201021
foo::E::Y => todo!(),
10211022
}
@@ -1059,15 +1060,15 @@ fn foo(a: A) {
10591060
r#"
10601061
enum A { One, Two }
10611062
fn foo(a: A) {
1062-
match a $0 {
1063-
// foo bar baz
1063+
match a {
1064+
// foo bar baz$0
10641065
}
10651066
}
10661067
"#,
10671068
r#"
10681069
enum A { One, Two }
10691070
fn foo(a: A) {
1070-
match a {
1071+
match a {
10711072
$0A::One => todo!(),
10721073
A::Two => todo!(),
10731074
// foo bar baz

0 commit comments

Comments
 (0)