aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-04-29 23:09:00 +0100
committerJonas Schievink <[email protected]>2020-04-29 23:10:30 +0100
commit15233a467db15671eacff901f7f67e612a465676 (patch)
treecfb535a7470b79ca5ebbe34b89899e97fd7aba91 /crates
parentcafa7a780af8dda22fc87bec75961979cd0801b5 (diff)
?
Diffstat (limited to 'crates')
-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