more clippy fixes

This commit is contained in:
Milo
2021-10-16 12:32:55 +01:00
parent 3c468ab2fc
commit 35e5daacc3
19 changed files with 46 additions and 52 deletions

View File

@@ -166,7 +166,7 @@ impl GlobalState {
self.handle_event(event)?
}
Err("client exited without proper shutdown sequence")?
return Err("client exited without proper shutdown sequence".into());
}
fn next_event(&self, inbox: &Receiver<lsp_server::Message>) -> Option<Event> {
@@ -769,7 +769,6 @@ impl GlobalState {
if !is_cancelled(&*err) {
tracing::error!("failed to compute diagnostics: {:?}", err);
}
()
})
.ok()
.map(|diags| (file_id, diags))