internal: Flatten Definition::ModuleDef variant

This commit is contained in:
Lukas Wirth
2021-11-10 22:02:50 +01:00
parent f724c84e7d
commit 7776aad166
32 changed files with 709 additions and 702 deletions

View File

@@ -39,7 +39,7 @@ pub(crate) fn goto_declaration(
}
};
match def? {
Definition::ModuleDef(hir::ModuleDef::Module(module)) => {
Definition::Module(module) => {
Some(NavigationTarget::from_module_to_decl(db, module))
}
_ => None,