aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/completion
diff options
context:
space:
mode:
authoradamrk <[email protected]>2020-09-01 21:13:12 +0100
committeradamrk <[email protected]>2020-09-01 21:13:12 +0100
commit04fc937700105951442a9b6fa30591fb48a1e879 (patch)
treee790fd0d19c30457b7aaae90eb898de791bc4511 /crates/ide/src/completion
parentc6ddb907144688ae77a6de3666159feef53638e1 (diff)
Add back Param struct
Diffstat (limited to 'crates/ide/src/completion')
-rw-r--r--crates/ide/src/completion/presentation.rs2
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, &param_ty, ctx)); 234 return Some(add_arg(arg, param_ty.ty(), ctx));
235 } 235 }
236 None 236 None
237 }) 237 })