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 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ide_completion/src/render/pattern.rs b/crates/ide_completion/src/render/pattern.rs index b703280620..2b4c919493 100644 --- a/crates/ide_completion/src/render/pattern.rs +++ b/crates/ide_completion/src/render/pattern.rs @@ -85,7 +85,11 @@ fn render_pat( if matches!( ctx.completion.pattern_ctx, - Some(PatternContext { is_param: Some(ParamKind::Function), .. }) + Some(PatternContext { + is_param: Some(ParamKind::Function), + has_type_ascription: false, + .. + }) ) { pat.push(':'); pat.push(' '); |