diff --git a/src/cargo/core/compiler/mod.rs b/src/cargo/core/compiler/mod.rs index 31532c48f61b..d21782d24390 100644 --- a/src/cargo/core/compiler/mod.rs +++ b/src/cargo/core/compiler/mod.rs @@ -413,7 +413,13 @@ fn rustc(cx: &mut Context<'_, '_>, unit: &Unit, exec: &Arc) -> Car 1 => " due to previous error".to_string(), count => format!(" due to {} previous errors", count), }; - format!("could not compile `{}` ({}) {}{}", name,target.description_named(), errors, warnings) + format!( + "could not compile `{}` ({}) {}{}", + name, + target.description_named(), + errors, + warnings + ) }); if let Err(e) = result {