aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/display
diff options
context:
space:
mode:
authorYuki Kodama <[email protected]>2020-05-25 17:05:50 +0100
committerYuki Kodama <[email protected]>2020-05-25 17:06:25 +0100
commitfd83f469e9643c7a9da2d9e4c796bd89c441458d (patch)
treea326da5b86030d5d1fe94e1aaca30ebca342327b /crates/ra_ide/src/display
parent41d0f7f24ef924440ee710e134c01d6e47056c3f (diff)
Trim at presentation layer
Diffstat (limited to 'crates/ra_ide/src/display')
-rw-r--r--crates/ra_ide/src/display/function_signature.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ra_ide/src/display/function_signature.rs b/crates/ra_ide/src/display/function_signature.rs
index fabc78f14..9572debd8 100644
--- a/crates/ra_ide/src/display/function_signature.rs
+++ b/crates/ra_ide/src/display/function_signature.rs
@@ -237,9 +237,7 @@ impl From<&'_ ast::FnDef> for FunctionSignature {
237 .descendants() 237 .descendants()
238 .find_map(ast::Name::cast)? 238 .find_map(ast::Name::cast)?
239 .text() 239 .text()
240 .to_string() 240 .to_string(),
241 .trim_start_matches('_')
242 .into(),
243 ) 241 )
244 }) 242 })
245 .map(|param| param.unwrap_or_default()), 243 .map(|param| param.unwrap_or_default()),