diff options
Diffstat (limited to 'crates/ide/src/completion')
-rw-r--r-- | crates/ide/src/completion/presentation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/completion/presentation.rs b/crates/ide/src/completion/presentation.rs index cfcb6dfa1..0c29d0be2 100644 --- a/crates/ide/src/completion/presentation.rs +++ b/crates/ide/src/completion/presentation.rs | |||
@@ -231,7 +231,7 @@ impl Completions { | |||
231 | if let Some(pat) = it.pat() { | 231 | if let Some(pat) = it.pat() { |
232 | let name = pat.to_string(); | 232 | let name = pat.to_string(); |
233 | let arg = name.trim_start_matches('_'); | 233 | let arg = name.trim_start_matches('_'); |
234 | return Some(add_arg(arg, ¶m_ty, ctx)); | 234 | return Some(add_arg(arg, param_ty.ty(), ctx)); |
235 | } | 235 | } |
236 | None | 236 | None |
237 | }) | 237 | }) |