Skip to content

Commit 0cd6a88

Browse files
if let -> match
1 parent 15233a4 commit 0cd6a88

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

crates/ra_ide/src/completion/complete_qualified_path.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ pub(super) fn complete_qualified_path(acc: &mut Completions, ctx: &CompletionCon
1515
let scope = ctx.scope();
1616
let context_module = scope.module();
1717

18-
let res = if let Some(res) = scope.resolve_hir_path(&path) {
19-
res
20-
} else {
21-
return;
18+
let res = match scope.resolve_hir_path(&path) {
19+
Some(res) => res,
20+
None => return,
2221
};
2322

2423
// Add associated types on type parameters and `Self`.

0 commit comments

Comments
 (0)