Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-diagnostics/src/handlers/incoherent_impl.rs')
| -rw-r--r-- | crates/ide-diagnostics/src/handlers/incoherent_impl.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide-diagnostics/src/handlers/incoherent_impl.rs b/crates/ide-diagnostics/src/handlers/incoherent_impl.rs index 4afb4db03b..3b4d400912 100644 --- a/crates/ide-diagnostics/src/handlers/incoherent_impl.rs +++ b/crates/ide-diagnostics/src/handlers/incoherent_impl.rs @@ -9,8 +9,8 @@ pub(crate) fn incoherent_impl(ctx: &DiagnosticsContext<'_>, d: &hir::IncoherentI Diagnostic::new_with_syntax_node_ptr( ctx, DiagnosticCode::RustcHardError("E0210"), - format!("cannot define inherent `impl` for foreign type"), - InFile::new(d.file_id, d.impl_.clone().into()), + "cannot define inherent `impl` for foreign type".to_string(), + InFile::new(d.file_id, d.impl_.into()), ) } |