Skip to content

Commit b2cb061

Browse files
committed
refactor "unnecessary else" diagnostic test
1 parent d15572a commit b2cb061

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/ide-diagnostics/src/handlers/remove_unnecessary_else.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -491,13 +491,12 @@ fn test2() {
491491
}
492492
"#,
493493
);
494-
check_diagnostics_with_disabled(
494+
check_diagnostics(
495495
r#"
496-
fn test3() {
496+
fn test3() -> u8 {
497497
foo(if a { return 1 } else { 0 })
498498
}
499499
"#,
500-
std::iter::once("E0308".to_owned()),
501500
);
502501
}
503502
}

0 commit comments

Comments
 (0)