mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-12-09 10:55:42 +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
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue