aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_ide/src/completion/complete_qualified_path.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/ra_ide/src/completion/complete_qualified_path.rs b/crates/ra_ide/src/completion/complete_qualified_path.rs
index 69e789a49..aa56a5cd8 100644
--- a/crates/ra_ide/src/completion/complete_qualified_path.rs
+++ b/crates/ra_ide/src/completion/complete_qualified_path.rs
@@ -15,10 +15,9 @@ pub(super) fn complete_qualified_path(acc: &mut Completions, ctx: &CompletionCon
15 let scope = ctx.scope(); 15 let scope = ctx.scope();
16 let context_module = scope.module(); 16 let context_module = scope.module();
17 17
18 let res = if let Some(res) = scope.resolve_hir_path(&path) { 18 let res = match scope.resolve_hir_path(&path) {
19 res 19 Some(res) => res,
20 } else { 20 None => return,
21 return;
22 }; 21 };
23 22
24 // Add associated types on type parameters and `Self`. 23 // Add associated types on type parameters and `Self`.