aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/module
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/module')
-rw-r--r--crates/ra_hir/src/module/nameres.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/module/nameres.rs b/crates/ra_hir/src/module/nameres.rs
index 33c9d93c2..98cd225dd 100644
--- a/crates/ra_hir/src/module/nameres.rs
+++ b/crates/ra_hir/src/module/nameres.rs
@@ -451,7 +451,7 @@ where
451 segments: import.path.segments[i + 1..].iter().cloned().collect(), 451 segments: import.path.segments[i + 1..].iter().cloned().collect(),
452 kind: PathKind::Crate, 452 kind: PathKind::Crate,
453 }; 453 };
454 let def_id = module.resolve_path(self.db, path)?; 454 let def_id = module.resolve_path(self.db, &path)?;
455 if !def_id.is_none() { 455 if !def_id.is_none() {
456 self.update(module_id, |items| { 456 self.update(module_id, |items| {
457 let res = Resolution { 457 let res = Resolution {