diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 06d5db8a51bd4..ac58ab75b110b 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -761,7 +761,7 @@ impl Application { true }); - let diagnostics = params + let diagnostics: Vec<(lsp::Diagnostic, LanguageServerId)> = params .diagnostics .into_iter() .map(|d| (d, server_id)) @@ -1241,8 +1241,8 @@ impl Application { pub fn get_unchanged_diagnostic_sources( doc: &Document, - diagnostics: &Vec<(lsp::Diagnostic, LanguageServerId)>, - old_diagnostics: &Vec<(lsp::Diagnostic, LanguageServerId)>, + diagnostics: &[(lsp::Diagnostic, LanguageServerId)], + old_diagnostics: &[(lsp::Diagnostic, LanguageServerId)], server_id: LanguageServerId, ) -> Vec { let mut unchanged_diag_sources = Vec::new();