diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-11-26 19:56:35 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-26 19:56:35 +0000 |
commit | 7d088a16df5983b9dcf392c7361f19e099e713bf (patch) | |
tree | 94929e320d14ae8829f807ff83824fb94f44c375 /crates/ra_ide_api | |
parent | d770f22c53a88035e2836cc01533dab4223f80d5 (diff) | |
parent | bed6869865ccfc6e72be26cb2041d83ab5cdbe3c (diff) |
Merge #2421
2421: Cleanup r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_path.rs b/crates/ra_ide_api/src/completion/complete_path.rs index 63e25e0bf..89e0009a1 100644 --- a/crates/ra_ide_api/src/completion/complete_path.rs +++ b/crates/ra_ide_api/src/completion/complete_path.rs | |||
@@ -50,7 +50,7 @@ pub(super) fn complete_path(acc: &mut Completions, ctx: &CompletionContext) { | |||
50 | hir::ModuleDef::TypeAlias(a) => a.ty(ctx.db), | 50 | hir::ModuleDef::TypeAlias(a) => a.ty(ctx.db), |
51 | _ => unreachable!(), | 51 | _ => unreachable!(), |
52 | }; | 52 | }; |
53 | ctx.analyzer.iterate_path_candidates(ctx.db, ty.clone(), None, |_ty, item| { | 53 | ctx.analyzer.iterate_path_candidates(ctx.db, &ty, None, |_ty, item| { |
54 | match item { | 54 | match item { |
55 | hir::AssocItem::Function(func) => { | 55 | hir::AssocItem::Function(func) => { |
56 | if !func.has_self_param(ctx.db) { | 56 | if !func.has_self_param(ctx.db) { |