diff options
Diffstat (limited to 'crates/ra_ide_api/src/navigation_target.rs')
-rw-r--r-- | crates/ra_ide_api/src/navigation_target.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/navigation_target.rs b/crates/ra_ide_api/src/navigation_target.rs index 2e11d2de3..c5be8e01b 100644 --- a/crates/ra_ide_api/src/navigation_target.rs +++ b/crates/ra_ide_api/src/navigation_target.rs | |||
@@ -107,7 +107,6 @@ impl NavigationTarget { | |||
107 | module_def: hir::ModuleDef, | 107 | module_def: hir::ModuleDef, |
108 | ) -> Option<NavigationTarget> { | 108 | ) -> Option<NavigationTarget> { |
109 | match module_def { | 109 | match module_def { |
110 | hir::ModuleDef::Def(_) => return None, | ||
111 | hir::ModuleDef::Module(module) => Some(NavigationTarget::from_module(db, module)), | 110 | hir::ModuleDef::Module(module) => Some(NavigationTarget::from_module(db, module)), |
112 | hir::ModuleDef::Function(func) => Some(NavigationTarget::from_function(db, func)), | 111 | hir::ModuleDef::Function(func) => Some(NavigationTarget::from_function(db, func)), |
113 | hir::ModuleDef::Struct(s) => { | 112 | hir::ModuleDef::Struct(s) => { |