From 4ab82bb5796c911b417172be190e10a56121d91b Mon Sep 17 00:00:00 2001 From: kevin zhao Date: Tue, 4 Nov 2025 14:40:31 -0800 Subject: [PATCH] clippy --- codex-rs/core/src/exec.rs | 4 +++- codex-rs/tui/src/chatwidget.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/src/exec.rs b/codex-rs/core/src/exec.rs index aa01923ba7..e9ee9ea82a 100644 --- a/codex-rs/core/src/exec.rs +++ b/codex-rs/core/src/exec.rs @@ -86,9 +86,11 @@ pub struct StdoutStream { pub tx_event: Sender, } +type DeltaEventFn = dyn Fn(&str, ExecOutputStream, Vec) -> EventMsg + Send + Sync; + #[derive(Clone)] pub struct DeltaEventBuilder { - inner: Arc) -> EventMsg + Send + Sync>, + inner: Arc, } impl DeltaEventBuilder { diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index f48ed26990..3901b057cd 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -981,7 +981,7 @@ impl ChatWidget { self.flush_active_cell(); self.active_cell = Some(Box::new(new_active_exec_command( - call_id.clone(), + call_id, command, parsed_cmd, is_user_shell_command,