Skip to content

Commit 9446dda

Browse files
committed
more clippy
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
1 parent aa631f6 commit 9446dda

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/cargo_cmd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ impl CargoCmd for Command {
198198
let output = self.output();
199199

200200
let Ok(output) = output else {
201-
bail!("Failed to execute command:\n{:?}", self);
201+
bail!("Failed to execute command:\n{self:?}");
202202
};
203203
if !output.status.success() {
204204
let stderr = String::from_utf8_lossy(&output.stderr);

src/command.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl Debug for Command {
8181
}
8282
write!(f, "{:?} ", self.get_program())?;
8383
for arg in &self.args {
84-
write!(f, "{:?} ", arg)?;
84+
write!(f, "{arg:?} ")?;
8585
}
8686
writeln!(f)
8787
}
@@ -521,7 +521,7 @@ impl Command {
521521
) {
522522
Ok(args) => args,
523523
Err(err) => {
524-
eprintln!("Failed to parse arguments: {}", err);
524+
eprintln!("Failed to parse arguments: {err}");
525525
std::process::exit(1);
526526
}
527527
}

0 commit comments

Comments
 (0)