Merge #5228
5228: Fix typo r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
8b0983e89a
@ -67,20 +67,20 @@ fn from(v: ProjectJson) -> Self {
|
||||
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 @@ pub fn update(&mut self, value: &serde_json::Value) {
|
||||
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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user