aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r--crates/ra_hir/src/semantics.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/ra_hir/src/semantics.rs b/crates/ra_hir/src/semantics.rs
index 75ab2373e..a0a0f234b 100644
--- a/crates/ra_hir/src/semantics.rs
+++ b/crates/ra_hir/src/semantics.rs
@@ -76,11 +76,7 @@ impl PathResolution {
76 db: &dyn HirDatabase, 76 db: &dyn HirDatabase,
77 mut cb: impl FnMut(TypeAlias) -> Option<R>, 77 mut cb: impl FnMut(TypeAlias) -> Option<R>,
78 ) -> Option<R> { 78 ) -> Option<R> {
79 if let Some(res) = self.in_type_ns() { 79 associated_type_shorthand_candidates(db, self.in_type_ns()?, |_, _, id| cb(id.into()))
80 associated_type_shorthand_candidates(db, res, |_, _, id| cb(id.into()))
81 } else {
82 None
83 }
84 } 80 }
85} 81}
86 82