Remove duplication in build_language_registry
This commit is contained in:
parent
cc9843c90e
commit
4d456d3847
2 changed files with 67 additions and 62 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue