aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/diagnostics/fixes/remove_semicolon.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide/src/diagnostics/fixes/remove_semicolon.rs')
-rw-r--r--crates/ide/src/diagnostics/fixes/remove_semicolon.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/ide/src/diagnostics/fixes/remove_semicolon.rs b/crates/ide/src/diagnostics/fixes/remove_semicolon.rs
index 058002c69..45471da41 100644
--- a/crates/ide/src/diagnostics/fixes/remove_semicolon.rs
+++ b/crates/ide/src/diagnostics/fixes/remove_semicolon.rs
@@ -29,3 +29,13 @@ impl DiagnosticWithFix for RemoveThisSemicolon {
29 Some(fix("remove_semicolon", "Remove this semicolon", source_change, semicolon)) 29 Some(fix("remove_semicolon", "Remove this semicolon", source_change, semicolon))
30 } 30 }
31} 31}
32
33#[cfg(test)]
34mod tests {
35 use crate::diagnostics::tests::check_fix;
36
37 #[test]
38 fn remove_semicolon() {
39 check_fix(r#"fn f() -> i32 { 92$0; }"#, r#"fn f() -> i32 { 92 }"#);
40 }
41}