From 76700100169357fdae7cc0ef8544ef2dc4a0d25d Mon Sep 17 00:00:00 2001 From: viyatb-oai Date: Mon, 20 Apr 2026 19:49:54 -0700 Subject: [PATCH] fix: satisfy core shell clippy Co-authored-by: Codex noreply@openai.com --- codex-rs/core/src/shell.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codex-rs/core/src/shell.rs b/codex-rs/core/src/shell.rs index 5754871147..177f2d2049 100644 --- a/codex-rs/core/src/shell.rs +++ b/codex-rs/core/src/shell.rs @@ -3,6 +3,7 @@ use codex_shell_command::shell_detect::ShellType as DetectedShellType; use codex_shell_command::shell_detect::detect_shell_type as detect_known_shell_type; use serde::Deserialize; use serde::Serialize; +use std::path::Path; use std::path::PathBuf; use std::sync::Arc; use tokio::sync::watch; @@ -89,7 +90,7 @@ impl PartialEq for Shell { impl Eq for Shell {} -fn detect_shell_type(shell_path: &PathBuf) -> Option { +fn detect_shell_type(shell_path: &Path) -> Option { match detect_known_shell_type(shell_path)? { DetectedShellType::Zsh => Some(ShellType::Zsh), DetectedShellType::Bash => Some(ShellType::Bash),