From 569504938e6d6b11eb3e35b562197d12167d301b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 5 Jul 2020 11:19:16 +0200 Subject: Fix typo --- crates/rust-analyzer/src/config.rs | 10 +++++----- crates/rust-analyzer/src/handlers.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index 0c7c36716..e42e41a41 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -67,20 +67,20 @@ impl From for LinkedProject { pub struct LensConfig { pub run: bool, pub debug: bool, - pub impementations: bool, + pub implementations: bool, } impl Default for LensConfig { fn default() -> Self { - Self { run: true, debug: true, impementations: true } + Self { run: true, debug: true, implementations: true } } } impl LensConfig { - pub const NO_LENS: LensConfig = Self { run: false, debug: false, impementations: false }; + pub const NO_LENS: LensConfig = Self { run: false, debug: false, implementations: false }; pub fn any(&self) -> bool { - self.impementations || self.runnable() + self.implementations || self.runnable() } pub fn none(&self) -> bool { @@ -272,7 +272,7 @@ impl Config { if lens_enabled { set(value, "/lens/run", &mut self.lens.run); set(value, "/lens/debug", &mut self.lens.debug); - set(value, "/lens/implementations", &mut self.lens.impementations); + set(value, "/lens/implementations", &mut self.lens.implementations); } else { self.lens = LensConfig::NO_LENS; } diff --git a/crates/rust-analyzer/src/handlers.rs b/crates/rust-analyzer/src/handlers.rs index 3cb532b62..cc83a1406 100644 --- a/crates/rust-analyzer/src/handlers.rs +++ b/crates/rust-analyzer/src/handlers.rs @@ -865,7 +865,7 @@ pub(crate) fn handle_code_lens( } } - if snap.config.lens.impementations { + if snap.config.lens.implementations { // Handle impls lenses.extend( snap.analysis -- cgit v1.2.3