Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/render/function.rs')
| -rw-r--r-- | crates/ide-completion/src/render/function.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/ide-completion/src/render/function.rs b/crates/ide-completion/src/render/function.rs index c47696bc41..5e1fbfa4a2 100644 --- a/crates/ide-completion/src/render/function.rs +++ b/crates/ide-completion/src/render/function.rs @@ -7,7 +7,9 @@ use stdx::{format_to, to_lower_snake_case}; use syntax::SmolStr; use crate::{ - context::{CompletionContext, DotAccess, NameRefContext, PathCompletionCtx, PathKind}, + context::{ + CompletionContext, DotAccess, DotAccessKind, NameRefContext, PathCompletionCtx, PathKind, + }, item::{Builder, CompletionItem, CompletionItemKind, CompletionRelevance}, render::{compute_exact_name_match, compute_ref_match, compute_type_match, RenderContext}, CallableSnippets, @@ -209,7 +211,10 @@ fn should_add_parens(ctx: &CompletionContext) -> bool { if matches!( ctx.nameref_ctx(), - Some(NameRefContext { dot_access: Some(DotAccess::Method { has_parens: true, .. }), .. }) + Some(NameRefContext { + dot_access: Some(DotAccess { kind: DotAccessKind::Method { has_parens: true }, .. }), + .. + }) ) { return false; } |