]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir/src/borrow_check/diagnostics/conflict_errors.rs
clippy::useless_format
[rust.git] / compiler / rustc_mir / src / borrow_check / diagnostics / conflict_errors.rs
index 2e854ea5be7df7046321a33dde452c5a84a38d30..e43973b8db40c53c7a38c0bd7636121e72875f0b 100644 (file)
@@ -320,7 +320,7 @@ pub(in crate::borrow_check) fn report_use_of_moved_or_uninitialized(
                                         .map(|n| format!("`{}`", n))
                                         .unwrap_or_else(|| "the mutable reference".to_string()),
                                 ),
-                                format!("&mut *"),
+                                "&mut *".to_string(),
                                 Applicability::MachineApplicable,
                             );
                         }