mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
clippy
This commit is contained in:
@@ -86,9 +86,11 @@ pub struct StdoutStream {
|
||||
pub tx_event: Sender<Event>,
|
||||
}
|
||||
|
||||
type DeltaEventFn = dyn Fn(&str, ExecOutputStream, Vec<u8>) -> EventMsg + Send + Sync;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct DeltaEventBuilder {
|
||||
inner: Arc<dyn Fn(&str, ExecOutputStream, Vec<u8>) -> EventMsg + Send + Sync>,
|
||||
inner: Arc<DeltaEventFn>,
|
||||
}
|
||||
|
||||
impl DeltaEventBuilder {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user