diff --git a/cargo/src/package/mod.rs b/cargo/src/package/mod.rs index 8af6bbc6..6889d841 100644 --- a/cargo/src/package/mod.rs +++ b/cargo/src/package/mod.rs @@ -333,11 +333,11 @@ fn build_manifest(config: &Config, } }; let log_src_problem = |problem: Problem| { - let msg = format!("Manifest validation"); + let msg = "Manifest validation".to_string(); log_problem(&msg, problem) }; let log_meta_problem = |problem: Problem| { - let msg = format!("Metadata validation"); + let msg = "Metadata validation".to_string(); log_problem(&msg, problem) };