Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/render/pattern.rs')
| -rw-r--r-- | crates/ide-completion/src/render/pattern.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide-completion/src/render/pattern.rs b/crates/ide-completion/src/render/pattern.rs index d6779961c0..03db08a911 100644 --- a/crates/ide-completion/src/render/pattern.rs +++ b/crates/ide-completion/src/render/pattern.rs @@ -6,7 +6,7 @@ use itertools::Itertools; use syntax::SmolStr; use crate::{ - context::{ParamKind, PatternContext}, + context::{ParamContext, ParamKind, PatternContext}, render::{ variant::{format_literal_label, visible_fields}, RenderContext, @@ -102,7 +102,7 @@ fn render_pat( let needs_ascription = matches!( pattern_ctx, PatternContext { - param_ctx: Some((.., ParamKind::Function(_))), + param_ctx: Some(ParamContext { kind: ParamKind::Function(_), .. }), has_type_ascription: false, .. } |