diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index 3f0ebca0df..cd2a8fc620 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs @@ -235,7 +235,7 @@ impl Module { } pub fn visibility_of(self, db: &dyn HirDatabase, def: &ModuleDef) -> Option { - db.crate_def_map(self.id.krate)[self.id.local_id].scope.visbility_of(def.clone().into()) + db.crate_def_map(self.id.krate)[self.id.local_id].scope.visibility_of(def.clone().into()) } pub fn diagnostics(self, db: &dyn HirDatabase, sink: &mut DiagnosticSink) { diff --git a/crates/ra_hir_def/src/item_scope.rs b/crates/ra_hir_def/src/item_scope.rs index ef1aaba6f7..259b9ff035 100644 --- a/crates/ra_hir_def/src/item_scope.rs +++ b/crates/ra_hir_def/src/item_scope.rs @@ -68,7 +68,7 @@ impl ItemScope { self.impls.iter().copied() } - pub fn visbility_of(&self, def: ModuleDefId) -> Option { + pub fn visibility_of(&self, def: ModuleDefId) -> Option { self.name_of(ItemInNs::Types(def)) .or_else(|| self.name_of(ItemInNs::Values(def))) .map(|(_, v)| v)