From a1773f8a6780d8e9f9953a50cfb6bdf43d37ee3a Mon Sep 17 00:00:00 2001 From: veetaha Date: Sat, 4 Apr 2020 16:12:09 +0300 Subject: [PATCH] Remove explicit generic type parameter --- crates/rust-analyzer/src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index 113aa77afb..b6a0157902 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -120,7 +120,7 @@ impl Config { set(value, "/withSysroot", &mut self.with_sysroot); set(value, "/featureFlags/lsp.diagnostics", &mut self.publish_diagnostics); set(value, "/lruCapacity", &mut self.lru_capacity); - self.files.watcher = match get::<&str>(value, "/files/watcher") { + self.files.watcher = match get(value, "/files/watcher") { Some("client") => FilesWatcher::Client, Some("notify") | _ => FilesWatcher::Notify };