mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
internal: remove needless distinction between a carte and its root mod
This commit is contained in:
parent
dedf0ff7c5
commit
f42648e305
4 changed files with 7 additions and 9 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue