diff options
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_path.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_path.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_path.rs b/crates/ra_ide_api/src/completion/complete_path.rs index d337fe970..f8595b5c4 100644 --- a/crates/ra_ide_api/src/completion/complete_path.rs +++ b/crates/ra_ide_api/src/completion/complete_path.rs | |||
@@ -64,14 +64,7 @@ pub(super) fn complete_path(acc: &mut Completions, ctx: &CompletionContext) { | |||
64 | hir::ImplItem::Method(func) => { | 64 | hir::ImplItem::Method(func) => { |
65 | let sig = func.signature(ctx.db); | 65 | let sig = func.signature(ctx.db); |
66 | if !sig.has_self_param() { | 66 | if !sig.has_self_param() { |
67 | CompletionItem::new( | 67 | acc.add_function(CompletionKind::Reference, ctx, func); |
68 | CompletionKind::Reference, | ||
69 | ctx.source_range(), | ||
70 | sig.name().to_string(), | ||
71 | ) | ||
72 | .from_function(ctx, func) | ||
73 | .kind(CompletionItemKind::Method) | ||
74 | .add_to(acc); | ||
75 | } | 68 | } |
76 | None::<()> | 69 | None::<()> |
77 | } | 70 | } |