aboutsummaryrefslogtreecommitdiff
path: root/crates/completion/src/render
diff options
context:
space:
mode:
Diffstat (limited to 'crates/completion/src/render')
-rw-r--r--crates/completion/src/render/function.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/completion/src/render/function.rs b/crates/completion/src/render/function.rs
index d16005249..316e05b52 100644
--- a/crates/completion/src/render/function.rs
+++ b/crates/completion/src/render/function.rs
@@ -91,7 +91,7 @@ impl<'a> FunctionRender<'a> {
91 .zip(params_ty) 91 .zip(params_ty)
92 .flat_map(|(pat, param_ty)| { 92 .flat_map(|(pat, param_ty)| {
93 let pat = pat?; 93 let pat = pat?;
94 let name = pat.to_string(); 94 let name = pat;
95 let arg = name.trim_start_matches("mut ").trim_start_matches('_'); 95 let arg = name.trim_start_matches("mut ").trim_start_matches('_');
96 Some(self.add_arg(arg, param_ty.ty())) 96 Some(self.add_arg(arg, param_ty.ty()))
97 }) 97 })