fix: resolve clippy pedantic warnings

Apply the bounded clippy pedantic cleanup from PR #3009.
This commit is contained in:
Heo, Sung
2026-06-03 20:39:05 +09:00
committed by GitHub
parent 1bd18be372
commit 0cef5390f7
2 changed files with 11 additions and 14 deletions

View File

@@ -737,7 +737,7 @@ fn format_hook_failure(command: &str, code: i32, stdout: Option<&str>, stderr: &
fn shell_command(command: &str) -> CommandWithStdin {
#[cfg(windows)]
let mut command_builder = {
let command_builder = {
let mut command_builder = Command::new("cmd");
command_builder.arg("/C").arg(command);
CommandWithStdin::new(command_builder)