fix: satisfy core shell clippy

Co-authored-by: Codex noreply@openai.com
This commit is contained in:
viyatb-oai
2026-04-20 19:49:54 -07:00
co-authored by Codex noreply@openai.com
parent ad69df568d
commit 7670010016
+2 -1
View File
@@ -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<ShellType> {
fn detect_shell_type(shell_path: &Path) -> Option<ShellType> {
match detect_known_shell_type(shell_path)? {
DetectedShellType::Zsh => Some(ShellType::Zsh),
DetectedShellType::Bash => Some(ShellType::Bash),