From 9b88b5a1811f7ee5e1a606a2b86ac14b95a6be98 Mon Sep 17 00:00:00 2001 From: xixishidibei Date: Fri, 11 Apr 2025 11:34:18 +0800 Subject: [PATCH] chore:fix cargo clippy warning Signed-off-by: xixishidibei --- src/assert.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assert.rs b/src/assert.rs index 0865df1..c767d84 100644 --- a/src/assert.rs +++ b/src/assert.rs @@ -61,7 +61,7 @@ impl OutputAssertExt for &mut process::Command { let output = match self.output() { Ok(output) => output, Err(err) => { - panic!("Failed to spawn {:?}: {}", self, err); + panic!("Failed to spawn {self:?}: {err}"); } }; Assert::new(output).append_context("command", format!("{self:?}"))