]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs
Account for dereference expressions
[rust.git] / compiler / rustc_borrowck / src / diagnostics / conflict_errors.rs
index 5e3745f17353af8543cc8cbdf52dcf7b1e25cfd6..5fb4dcf09f5df920d9ed096e8dd9a8b517d42056 100644 (file)
@@ -745,7 +745,7 @@ fn suggest_cloning(&self, err: &mut Diagnostic, ty: Ty<'tcx>, span: Span) {
             err.span_suggestion_verbose(
                 span.shrink_to_hi(),
                 "consider cloning the value if the performance cost is acceptable",
-                ".clone()".to_string(),
+                ".clone()",
                 Applicability::MachineApplicable,
             );
         }