Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Apr 29, 2020
1 parent cafa7a7 commit 15233a4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/ra_hir/src/semantics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,7 @@ impl PathResolution {
db: &dyn HirDatabase,
mut cb: impl FnMut(TypeAlias) -> Option<R>,
) -> Option<R> {
if let Some(res) = self.in_type_ns() {
associated_type_shorthand_candidates(db, res, |_, _, id| cb(id.into()))
} else {
None
}
associated_type_shorthand_candidates(db, self.in_type_ns()?, |_, _, id| cb(id.into()))
}
}

Expand Down

0 comments on commit 15233a4

Please sign in to comment.