Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-diagnostics/src/handlers/trait_impl_orphan.rs')
| -rw-r--r-- | crates/ide-diagnostics/src/handlers/trait_impl_orphan.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ide-diagnostics/src/handlers/trait_impl_orphan.rs b/crates/ide-diagnostics/src/handlers/trait_impl_orphan.rs index 159d87d269..d36813381e 100644 --- a/crates/ide-diagnostics/src/handlers/trait_impl_orphan.rs +++ b/crates/ide-diagnostics/src/handlers/trait_impl_orphan.rs @@ -12,8 +12,9 @@ pub(crate) fn trait_impl_orphan( Diagnostic::new_with_syntax_node_ptr( ctx, DiagnosticCode::RustcHardError("E0117"), - format!("only traits defined in the current crate can be implemented for arbitrary types"), - InFile::new(d.file_id, d.impl_.clone().into()), + "only traits defined in the current crate can be implemented for arbitrary types" + .to_string(), + InFile::new(d.file_id, d.impl_.into()), ) // Not yet checked for false positives .experimental() |