diff options
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/diagnostics.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/crates/ra_ide_api/src/diagnostics.rs b/crates/ra_ide_api/src/diagnostics.rs index 11391ef02..841103322 100644 --- a/crates/ra_ide_api/src/diagnostics.rs +++ b/crates/ra_ide_api/src/diagnostics.rs | |||
@@ -39,12 +39,7 @@ pub(crate) fn diagnostics(db: &RootDatabase, file_id: FileId) -> Vec<Diagnostic> | |||
39 | .on::<hir::diagnostics::UnresolvedModule, _>(|d| { | 39 | .on::<hir::diagnostics::UnresolvedModule, _>(|d| { |
40 | let source_root = db.file_source_root(d.file().original_file(db)); | 40 | let source_root = db.file_source_root(d.file().original_file(db)); |
41 | let create_file = FileSystemEdit::CreateFile { source_root, path: d.candidate.clone() }; | 41 | let create_file = FileSystemEdit::CreateFile { source_root, path: d.candidate.clone() }; |
42 | let fix = SourceChange { | 42 | let fix = SourceChange::file_system_edit("create module", create_file); |
43 | label: "create module".to_string(), | ||
44 | source_file_edits: Vec::new(), | ||
45 | file_system_edits: vec![create_file], | ||
46 | cursor_position: None, | ||
47 | }; | ||
48 | res.borrow_mut().push(Diagnostic { | 43 | res.borrow_mut().push(Diagnostic { |
49 | range: d.highlight_range(), | 44 | range: d.highlight_range(), |
50 | message: d.message(), | 45 | message: d.message(), |