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/nameres.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/nameres.rs b/crates/ra_hir/src/nameres.rs
index 7bddee9b9..c59c30579 100644
--- a/crates/ra_hir/src/nameres.rs
+++ b/crates/ra_hir/src/nameres.rs
@@ -406,7 +406,7 @@ impl CrateDefMap {
406 }; 406 };
407 407
408 for (i, segment) in segments { 408 for (i, segment) in segments {
409 let curr = match curr_per_ns.as_ref().left().map_or(None, |m| m.as_ref().take_types()) { 409 let curr = match curr_per_ns.as_ref().left().and_then(|m| m.as_ref().take_types()) {
410 Some(r) => r, 410 Some(r) => r,
411 None => { 411 None => {
412 // we still have path segments left, but the path so far 412 // we still have path segments left, but the path so far