From fd83f469e9643c7a9da2d9e4c796bd89c441458d Mon Sep 17 00:00:00 2001 From: Yuki Kodama Date: Tue, 26 May 2020 01:05:50 +0900 Subject: Trim at presentation layer --- crates/ra_ide/src/display/function_signature.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crates/ra_ide/src/display') 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 { .descendants() .find_map(ast::Name::cast)? .text() - .to_string() - .trim_start_matches('_') - .into(), + .to_string(), ) }) .map(|param| param.unwrap_or_default()), -- cgit v1.2.3