aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-05-28 16:50:53 +0100
committerAleksey Kladov <[email protected]>2019-05-28 16:50:53 +0100
commit80a17251473bd6213a4c8a51ea7f732394d173c5 (patch)
treeb86af19c34313b0f340a7b4ade945250c767267e
parent61e1474ab35deb7d54cc2f5d710b901f200b6467 (diff)
fix todo
-rw-r--r--crates/ra_ide_api/src/diagnostics.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/crates/ra_ide_api/src/diagnostics.rs b/crates/ra_ide_api/src/diagnostics.rs
index 4cf2a0b70..a2a8c1e4f 100644
--- a/crates/ra_ide_api/src/diagnostics.rs
+++ b/crates/ra_ide_api/src/diagnostics.rs
@@ -58,9 +58,6 @@ pub(crate) fn diagnostics(db: &RootDatabase, file_id: FileId) -> Vec<Diagnostic>
58 }) 58 })
59 }) 59 })
60 .on::<hir::diagnostics::MissingFields, _>(|d| { 60 .on::<hir::diagnostics::MissingFields, _>(|d| {
61 //TODO: commment
62 let file_id = d.file().original_file(db);
63 let source_file = db.parse(file_id).tree;
64 let syntax_node = d.syntax_node_ptr(); 61 let syntax_node = d.syntax_node_ptr();
65 let node = NamedFieldList::cast(syntax_node.to_node(source_file.syntax())).unwrap(); 62 let node = NamedFieldList::cast(syntax_node.to_node(source_file.syntax())).unwrap();
66 let mut ast_editor = AstEditor::new(node); 63 let mut ast_editor = AstEditor::new(node);