Skip to content

Commit 5695049

Browse files
committed
Fix typo
1 parent 6c2f422 commit 5695049

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crates/rust-analyzer/src/config.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,20 @@ impl From<ProjectJson> for LinkedProject {
6767
pub struct LensConfig {
6868
pub run: bool,
6969
pub debug: bool,
70-
pub impementations: bool,
70+
pub implementations: bool,
7171
}
7272

7373
impl Default for LensConfig {
7474
fn default() -> Self {
75-
Self { run: true, debug: true, impementations: true }
75+
Self { run: true, debug: true, implementations: true }
7676
}
7777
}
7878

7979
impl LensConfig {
80-
pub const NO_LENS: LensConfig = Self { run: false, debug: false, impementations: false };
80+
pub const NO_LENS: LensConfig = Self { run: false, debug: false, implementations: false };
8181

8282
pub fn any(&self) -> bool {
83-
self.impementations || self.runnable()
83+
self.implementations || self.runnable()
8484
}
8585

8686
pub fn none(&self) -> bool {
@@ -272,7 +272,7 @@ impl Config {
272272
if lens_enabled {
273273
set(value, "/lens/run", &mut self.lens.run);
274274
set(value, "/lens/debug", &mut self.lens.debug);
275-
set(value, "/lens/implementations", &mut self.lens.impementations);
275+
set(value, "/lens/implementations", &mut self.lens.implementations);
276276
} else {
277277
self.lens = LensConfig::NO_LENS;
278278
}

crates/rust-analyzer/src/handlers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ pub(crate) fn handle_code_lens(
865865
}
866866
}
867867

868-
if snap.config.lens.impementations {
868+
if snap.config.lens.implementations {
869869
// Handle impls
870870
lenses.extend(
871871
snap.analysis

0 commit comments

Comments
 (0)