Skip to content

Commit 4d3e6fe

Browse files
committed
lint
1 parent 9294965 commit 4d3e6fe

File tree

1 file changed

+6
-8
lines changed
  • src/tools/rust-analyzer/crates/rust-analyzer/src

1 file changed

+6
-8
lines changed

src/tools/rust-analyzer/crates/rust-analyzer/src/flycheck.rs

+6-8
Original file line numberDiff line numberDiff line change
@@ -398,14 +398,12 @@ impl FlycheckActor {
398398
package_id: Some(package_id.clone()),
399399
});
400400
}
401-
} else {
402-
if !self.diagnostics_cleared_for_all {
403-
self.diagnostics_cleared_for_all = true;
404-
self.send(FlycheckMessage::ClearDiagnostics {
405-
id: self.id,
406-
package_id: None,
407-
});
408-
}
401+
} else if !self.diagnostics_cleared_for_all {
402+
self.diagnostics_cleared_for_all = true;
403+
self.send(FlycheckMessage::ClearDiagnostics {
404+
id: self.id,
405+
package_id: None,
406+
});
409407
}
410408
self.send(FlycheckMessage::AddDiagnostic {
411409
id: self.id,

0 commit comments

Comments
 (0)