From 04fc937700105951442a9b6fa30591fb48a1e879 Mon Sep 17 00:00:00 2001 From: adamrk Date: Tue, 1 Sep 2020 22:13:12 +0200 Subject: Add back Param struct --- crates/ide/src/completion/presentation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ide/src') 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 { if let Some(pat) = it.pat() { let name = pat.to_string(); let arg = name.trim_start_matches('_'); - return Some(add_arg(arg, ¶m_ty, ctx)); + return Some(add_arg(arg, param_ty.ty(), ctx)); } None }) -- cgit v1.2.3