Merge pull request #2884 from ehuss/fix-xtask-format

Fix incorrect string formatting in xtask error message
This commit is contained in:
Eric Huss 2025-10-15 14:04:36 +00:00 committed by GitHub
commit 07d2989486
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,7 +74,7 @@ fn cargo(args: &str, cb: &dyn Fn(&mut Command)) -> Result<()> {
cb(&mut cmd); cb(&mut cmd);
let status = cmd.status().expect("cargo should be installed"); let status = cmd.status().expect("cargo should be installed");
if !status.success() { if !status.success() {
return Err("command `cargo {args}` failed".into()); return Err(format!("command `cargo {args}` failed").into());
} }
Ok(()) Ok(())
} }