Skip to content

Commit 15233a4

Browse files
?
1 parent cafa7a7 commit 15233a4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/ra_hir/src/semantics.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,7 @@ impl PathResolution {
7676
db: &dyn HirDatabase,
7777
mut cb: impl FnMut(TypeAlias) -> Option<R>,
7878
) -> Option<R> {
79-
if let Some(res) = self.in_type_ns() {
80-
associated_type_shorthand_candidates(db, res, |_, _, id| cb(id.into()))
81-
} else {
82-
None
83-
}
79+
associated_type_shorthand_candidates(db, self.in_type_ns()?, |_, _, id| cb(id.into()))
8480
}
8581
}
8682

0 commit comments

Comments
 (0)