From a5f85d7905d1de59b76fef1186882dec6fbc2c62 Mon Sep 17 00:00:00 2001 From: Felipe Coury Date: Fri, 5 Jun 2026 13:38:27 -0300 Subject: [PATCH] fix(shell-command): remove needless path borrow --- codex-rs/shell-command/src/bash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/shell-command/src/bash.rs b/codex-rs/shell-command/src/bash.rs index 29660ab5da..0dee5fa366 100644 --- a/codex-rs/shell-command/src/bash.rs +++ b/codex-rs/shell-command/src/bash.rs @@ -112,7 +112,7 @@ pub fn extract_bash_command(command: &[String]) -> Option<(&str, &str)> { fn is_recognised_bash_lc_invocation(shell: &str, flag: &str) -> bool { matches!(flag, "-lc" | "-c") && matches!( - detect_shell_type(&PathBuf::from(shell)), + detect_shell_type(PathBuf::from(shell)), Some(ShellType::Zsh) | Some(ShellType::Bash) | Some(ShellType::Sh) ) }