diff --git a/bench/src/utils.rs b/bench/src/utils.rs index 48d0ba7eb..0b6ce1e58 100644 --- a/bench/src/utils.rs +++ b/bench/src/utils.rs @@ -109,7 +109,7 @@ pub fn run_collect(cmd: &[&str]) -> Result<(String, String)> { .stdout(Stdio::piped()) .stderr(Stdio::piped()) .output() - .with_context(|| format!("failed to execute command: {:?}", cmd))?; + .with_context(|| format!("failed to execute command: {cmd:?}"))?; if !output.status.success() { bail!( @@ -223,7 +223,7 @@ pub fn run(cmd: &[&str]) -> Result<()> { .args(&cmd[1..]) .stdin(Stdio::piped()) .status() - .with_context(|| format!("failed to execute command: {:?}", cmd))?; + .with_context(|| format!("failed to execute command: {cmd:?}"))?; if !status.success() { bail!("Command {:?} exited with {:?}", cmd, status.code());