diff options
Diffstat (limited to 'crates/ra_ide_api/src/diagnostics.rs')
-rw-r--r-- | crates/ra_ide_api/src/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/diagnostics.rs b/crates/ra_ide_api/src/diagnostics.rs index 6559de29d..156f28ca3 100644 --- a/crates/ra_ide_api/src/diagnostics.rs +++ b/crates/ra_ide_api/src/diagnostics.rs | |||
@@ -71,7 +71,7 @@ fn check_unnecessary_braces_in_use_statement( | |||
71 | range, | 71 | range, |
72 | message: format!("Unnecessary braces in use statement"), | 72 | message: format!("Unnecessary braces in use statement"), |
73 | severity: Severity::WeakWarning, | 73 | severity: Severity::WeakWarning, |
74 | fix: Some(SourceChange::source_edit( | 74 | fix: Some(SourceChange::source_file_edit( |
75 | "Remove unnecessary braces", | 75 | "Remove unnecessary braces", |
76 | SourceFileEdit { file_id, edit }, | 76 | SourceFileEdit { file_id, edit }, |
77 | )), | 77 | )), |
@@ -117,7 +117,7 @@ fn check_struct_shorthand_initialization( | |||
117 | range: named_field.syntax().range(), | 117 | range: named_field.syntax().range(), |
118 | message: format!("Shorthand struct initialization"), | 118 | message: format!("Shorthand struct initialization"), |
119 | severity: Severity::WeakWarning, | 119 | severity: Severity::WeakWarning, |
120 | fix: Some(SourceChange::source_edit( | 120 | fix: Some(SourceChange::source_file_edit( |
121 | "use struct shorthand initialization", | 121 | "use struct shorthand initialization", |
122 | SourceFileEdit { file_id, edit }, | 122 | SourceFileEdit { file_id, edit }, |
123 | )), | 123 | )), |