Remove duplication in build_language_registry

This commit is contained in:
Max Brunsfeld 2022-03-28 18:01:29 -07:00
parent cc9843c90e
commit 4d456d3847
2 changed files with 67 additions and 62 deletions

View file

@ -465,8 +465,8 @@ impl Language {
Ok(self)
}
pub fn with_lsp_adapter(mut self, lsp_adapter: impl LspAdapter) -> Self {
self.adapter = Some(Arc::new(lsp_adapter));
pub fn with_lsp_adapter(mut self, lsp_adapter: Arc<dyn LspAdapter>) -> Self {
self.adapter = Some(lsp_adapter);
self
}