auto clippy fixes

This commit is contained in:
Folkert 2023-06-26 20:42:50 +02:00
parent 72c85efc83
commit ef39bad7c6
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
146 changed files with 750 additions and 1005 deletions

View file

@ -112,12 +112,11 @@ fn check_command_available(command_name: &str) -> bool {
cmd.args([command_name]);
let cmd_str = format!("{:?}", cmd);
let cmd_str = format!("{cmd:?}");
let cmd_out = cmd.output().unwrap_or_else(|err| {
panic!(
"Failed to execute `{}` to check if {} is available:\n {}",
cmd_str, command_name, err
"Failed to execute `{cmd_str}` to check if {command_name} is available:\n {err}"
)
});