diff options
Diffstat (limited to 'crates/ra_ide_api/src/goto_definition.rs')
-rw-r--r-- | crates/ra_ide_api/src/goto_definition.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ra_ide_api/src/goto_definition.rs b/crates/ra_ide_api/src/goto_definition.rs index 45b4c56ef..dc0c50918 100644 --- a/crates/ra_ide_api/src/goto_definition.rs +++ b/crates/ra_ide_api/src/goto_definition.rs | |||
@@ -97,9 +97,7 @@ pub(crate) fn reference_definition( | |||
97 | { | 97 | { |
98 | let resolved = module.resolve_path(db, &path); | 98 | let resolved = module.resolve_path(db, &path); |
99 | if let Some(def_id) = resolved.take_types().or(resolved.take_values()) { | 99 | if let Some(def_id) = resolved.take_types().or(resolved.take_values()) { |
100 | if let Some(target) = NavigationTarget::from_def(db, def_id) { | 100 | return Exact(NavigationTarget::from_def(db, def_id)); |
101 | return Exact(target); | ||
102 | } | ||
103 | } | 101 | } |
104 | } | 102 | } |
105 | } | 103 | } |