Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/highlight_related.rs')
| -rw-r--r-- | crates/ide/src/highlight_related.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/highlight_related.rs b/crates/ide/src/highlight_related.rs index e452f8c938..5ff6fd10bc 100644 --- a/crates/ide/src/highlight_related.rs +++ b/crates/ide/src/highlight_related.rs @@ -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), |