mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
internal: Flatten Definition::ModuleDef
variant
This commit is contained in:
parent
f724c84e7d
commit
7776aad166
32 changed files with 709 additions and 702 deletions
|
@ -97,7 +97,7 @@ fn highlight_references(
|
|||
|
||||
let declarations = defs.iter().flat_map(|def| {
|
||||
match def {
|
||||
&Definition::ModuleDef(hir::ModuleDef::Module(module)) => {
|
||||
&Definition::Module(module) => {
|
||||
Some(NavigationTarget::from_module_to_decl(sema.db, module))
|
||||
}
|
||||
def => def.try_to_nav(sema.db),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue