mirror of
https://github.com/rust-lang/mdBook.git
synced 2025-12-27 07:54:20 -05:00
Fix incorrect string formatting in xtask error message
This commit is contained in:
@@ -74,7 +74,7 @@ fn cargo(args: &str, cb: &dyn Fn(&mut Command)) -> Result<()> {
|
||||
cb(&mut cmd);
|
||||
let status = cmd.status().expect("cargo should be installed");
|
||||
if !status.success() {
|
||||
return Err("command `cargo {args}` failed".into());
|
||||
return Err(format!("command `cargo {args}` failed").into());
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user