mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Fix typo
This commit is contained in:
parent
6c2f42260c
commit
569504938e
2 changed files with 6 additions and 6 deletions
|
@ -67,20 +67,20 @@ impl From<ProjectJson> for LinkedProject {
|
||||||
pub struct LensConfig {
|
pub struct LensConfig {
|
||||||
pub run: bool,
|
pub run: bool,
|
||||||
pub debug: bool,
|
pub debug: bool,
|
||||||
pub impementations: bool,
|
pub implementations: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for LensConfig {
|
impl Default for LensConfig {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self { run: true, debug: true, impementations: true }
|
Self { run: true, debug: true, implementations: true }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl LensConfig {
|
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 {
|
pub fn any(&self) -> bool {
|
||||||
self.impementations || self.runnable()
|
self.implementations || self.runnable()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn none(&self) -> bool {
|
pub fn none(&self) -> bool {
|
||||||
|
@ -272,7 +272,7 @@ impl Config {
|
||||||
if lens_enabled {
|
if lens_enabled {
|
||||||
set(value, "/lens/run", &mut self.lens.run);
|
set(value, "/lens/run", &mut self.lens.run);
|
||||||
set(value, "/lens/debug", &mut self.lens.debug);
|
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 {
|
} else {
|
||||||
self.lens = LensConfig::NO_LENS;
|
self.lens = LensConfig::NO_LENS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -865,7 +865,7 @@ pub(crate) fn handle_code_lens(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if snap.config.lens.impementations {
|
if snap.config.lens.implementations {
|
||||||
// Handle impls
|
// Handle impls
|
||||||
lenses.extend(
|
lenses.extend(
|
||||||
snap.analysis
|
snap.analysis
|
||||||
|
|
Loading…
Reference in a new issue