Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-diagnostics/src/handlers/trait_impl_redundant_assoc_item.rs')
-rw-r--r--crates/ide-diagnostics/src/handlers/trait_impl_redundant_assoc_item.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide-diagnostics/src/handlers/trait_impl_redundant_assoc_item.rs b/crates/ide-diagnostics/src/handlers/trait_impl_redundant_assoc_item.rs
index 6226072513..6ecfd55ea0 100644
--- a/crates/ide-diagnostics/src/handlers/trait_impl_redundant_assoc_item.rs
+++ b/crates/ide-diagnostics/src/handlers/trait_impl_redundant_assoc_item.rs
@@ -32,7 +32,7 @@ pub(crate) fn trait_impl_redundant_assoc_item(
.source(db)
.map(|it| it.syntax().value.text_range())
.unwrap_or(default_range),
- format!("\n {};", function.display(db).to_string()),
+ format!("\n {};", function.display(db)),
)
}
hir::AssocItem::Const(id) => {
@@ -43,7 +43,7 @@ pub(crate) fn trait_impl_redundant_assoc_item(
.source(db)
.map(|it| it.syntax().value.text_range())
.unwrap_or(default_range),
- format!("\n {};", constant.display(db).to_string()),
+ format!("\n {};", constant.display(db)),
)
}
hir::AssocItem::TypeAlias(id) => {