aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-07-09 14:50:35 +0100
committerJonas Schievink <[email protected]>2020-07-09 14:50:35 +0100
commit73327c647dfdc36fb550967271d12db16978c5d6 (patch)
treeff468bbf25b34864f944205e977a8b2dbc5196e6 /crates/ra_ide
parent47d0cf201c3b88675ab940369b889a43b9197d6b (diff)
Remove unnecessary DiagnosticSink handlers
Diffstat (limited to 'crates/ra_ide')
-rw-r--r--crates/ra_ide/src/diagnostics.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/crates/ra_ide/src/diagnostics.rs b/crates/ra_ide/src/diagnostics.rs
index d984f58ba..f4bc0d619 100644
--- a/crates/ra_ide/src/diagnostics.rs
+++ b/crates/ra_ide/src/diagnostics.rs
@@ -99,14 +99,6 @@ pub(crate) fn diagnostics(db: &RootDatabase, file_id: FileId) -> Vec<Diagnostic>
99 fix, 99 fix,
100 }) 100 })
101 }) 101 })
102 .on::<hir::diagnostics::MissingMatchArms, _>(|d| {
103 res.borrow_mut().push(Diagnostic {
104 range: sema.diagnostics_range(d).range,
105 message: d.message(),
106 severity: Severity::Error,
107 fix: None,
108 })
109 })
110 .on::<hir::diagnostics::MissingOkInTailExpr, _>(|d| { 102 .on::<hir::diagnostics::MissingOkInTailExpr, _>(|d| {
111 let node = d.ast(db); 103 let node = d.ast(db);
112 let replacement = format!("Ok({})", node.syntax()); 104 let replacement = format!("Ok({})", node.syntax());
@@ -127,14 +119,6 @@ pub(crate) fn diagnostics(db: &RootDatabase, file_id: FileId) -> Vec<Diagnostic>
127 severity: Severity::Error, 119 severity: Severity::Error,
128 fix: missing_struct_field_fix(&sema, file_id, d), 120 fix: missing_struct_field_fix(&sema, file_id, d),
129 }) 121 })
130 })
131 .on::<hir::diagnostics::MismatchedArgCount, _>(|d| {
132 res.borrow_mut().push(Diagnostic {
133 range: sema.diagnostics_range(d).range,
134 message: d.message(),
135 severity: Severity::Error,
136 fix: None,
137 })
138 }); 122 });
139 123
140 if let Some(m) = sema.to_module_def(file_id) { 124 if let Some(m) = sema.to_module_def(file_id) {