mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
simplify
This commit is contained in:
parent
3c7c5a7354
commit
9af525dbd6
4 changed files with 31 additions and 35 deletions
|
@ -64,7 +64,7 @@ pub(super) fn complete_path(acc: &mut Completions, ctx: &CompletionContext) {
|
|||
hir::ImplItem::Method(func) => {
|
||||
let sig = func.signature(ctx.db);
|
||||
if !sig.has_self_param() {
|
||||
acc.add_function(CompletionKind::Reference, ctx, func);
|
||||
acc.add_function(ctx, func);
|
||||
}
|
||||
None::<()>
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue