Skip to content

Commit 589f157

Browse files
committed
Update convert_to_guarded_return tests
1 parent 42142f7 commit 589f157

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/ide-assists/src/handlers/convert_to_guarded_return.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,14 +421,16 @@ fn main() {
421421
if$0 let Ok(x) = Err(92) {
422422
foo(x);
423423
} else {
424-
return ;
424+
// needless comment
425+
return;
425426
}
426427
}
427428
"#,
428429
r#"
429430
fn main() {
430431
let Ok(x) = Err(92) else {
431-
return ;
432+
// needless comment
433+
return;
432434
};
433435
foo(x);
434436
}

0 commit comments

Comments
 (0)