aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_ide/src/display/function_signature.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/crates/ra_ide/src/display/function_signature.rs b/crates/ra_ide/src/display/function_signature.rs
index b0eb1f194..ddc53a52b 100644
--- a/crates/ra_ide/src/display/function_signature.rs
+++ b/crates/ra_ide/src/display/function_signature.rs
@@ -169,11 +169,9 @@ impl From<&'_ ast::FnDef> for FunctionSignature {
169 res.push(self_param.syntax().text().to_string()) 169 res.push(self_param.syntax().text().to_string())
170 } 170 }
171 171
172 res.extend( 172 res.extend(param_list.params().map(|param| {
173 param_list 173 param.pat().map(|pat| pat.syntax().text().to_string()).unwrap_or_default()
174 .params() 174 }));
175 .map(|param| param.pat().unwrap().syntax().text().to_string()),
176 );
177 } 175 }
178 res 176 res
179 } 177 }