mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 19:17:12 +00:00
lint
This commit is contained in:
parent
f2b789c36e
commit
fe54502f11
1 changed files with 6 additions and 8 deletions
|
|
@ -398,14 +398,12 @@ impl FlycheckActor {
|
|||
package_id: Some(package_id.clone()),
|
||||
});
|
||||
}
|
||||
} else {
|
||||
if !self.diagnostics_cleared_for_all {
|
||||
self.diagnostics_cleared_for_all = true;
|
||||
self.send(FlycheckMessage::ClearDiagnostics {
|
||||
id: self.id,
|
||||
package_id: None,
|
||||
});
|
||||
}
|
||||
} else if !self.diagnostics_cleared_for_all {
|
||||
self.diagnostics_cleared_for_all = true;
|
||||
self.send(FlycheckMessage::ClearDiagnostics {
|
||||
id: self.id,
|
||||
package_id: None,
|
||||
});
|
||||
}
|
||||
self.send(FlycheckMessage::AddDiagnostic {
|
||||
id: self.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue