aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-04-29 23:10:15 +0100
committerJonas Schievink <[email protected]>2020-04-29 23:10:30 +0100
commit0cd6a88cf6f80d48669c6136f5fa814fcdafe8e2 (patch)
tree3f05c054c5c143862b9abde47bda2cd4fab2ded9 /crates/ra_ide/src
parent15233a467db15671eacff901f7f67e612a465676 (diff)
if let -> match
Diffstat (limited to 'crates/ra_ide/src')
-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`.