internal: remove needless distinction between a carte and its root mod

This commit is contained in:
Aleksey Kladov 2021-07-11 14:55:24 +03:00
parent dedf0ff7c5
commit f42648e305
4 changed files with 7 additions and 9 deletions

View file

@ -111,7 +111,6 @@ pub(super) fn element(
}
};
let h = match name_class {
NameRefClass::ExternCrate(_) => SymbolKind::Module.into(),
NameRefClass::Definition(def) => {
if let Definition::Local(local) = &def {
if let Some(name) = local.name(db) {