Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_assists/src/handlers/convert_into_to_from.rs')
-rw-r--r--crates/ide_assists/src/handlers/convert_into_to_from.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ide_assists/src/handlers/convert_into_to_from.rs b/crates/ide_assists/src/handlers/convert_into_to_from.rs
index 29555a5111..7f27b507ba 100644
--- a/crates/ide_assists/src/handlers/convert_into_to_from.rs
+++ b/crates/ide_assists/src/handlers/convert_into_to_from.rs
@@ -91,10 +91,7 @@ pub(crate) fn convert_into_to_from(acc: &mut Assists, ctx: &AssistContext) -> Op
builder.replace(src_type.syntax().text_range(), dest_type.to_string());
builder.replace(ast_trait.syntax().text_range(), format!("From<{}>", src_type));
builder.replace(into_fn_return.syntax().text_range(), "-> Self");
- builder.replace(
- into_fn_params.syntax().text_range(),
- format!("(val: {})", src_type.to_string()),
- );
+ builder.replace(into_fn_params.syntax().text_range(), format!("(val: {})", src_type));
builder.replace(into_fn_name.syntax().text_range(), "from");
for s in selfs {