From 6f99953617e3728b9001e752188d25033bc1c7b0 Mon Sep 17 00:00:00 2001 From: jimmyfraiture Date: Wed, 10 Sep 2025 18:51:51 -0700 Subject: [PATCH] Some cleaning 3 --- codex-rs/core/src/codex.rs | 2 +- codex-rs/core/src/parse_command.rs | 6 +++--- codex-rs/login/src/server.rs | 2 +- codex-rs/tui/src/bottom_pane/textarea.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/codex-rs/core/src/codex.rs b/codex-rs/core/src/codex.rs index 1f098b327b..8e444faa92 100644 --- a/codex-rs/core/src/codex.rs +++ b/codex-rs/core/src/codex.rs @@ -1727,7 +1727,7 @@ async fn try_run_turn( } }) .map(|call_id| ResponseItem::CustomToolCallOutput { - call_id: call_id, + call_id, output: "aborted".to_string(), }) .collect::>() diff --git a/codex-rs/core/src/parse_command.rs b/codex-rs/core/src/parse_command.rs index a0673dda29..3095b6901f 100644 --- a/codex-rs/core/src/parse_command.rs +++ b/codex-rs/core/src/parse_command.rs @@ -1202,7 +1202,7 @@ fn parse_bash_lc_commands(original: &[String]) -> Option> { } } else { ParsedCommand::Read { - cmd: cmd, + cmd, name, } } @@ -1216,7 +1216,7 @@ fn parse_bash_lc_commands(original: &[String]) -> Option> { ParsedCommand::ListFiles { path, cmd, .. } => { if had_connectors { ParsedCommand::ListFiles { - cmd: cmd, + cmd, path, } } else { @@ -1231,7 +1231,7 @@ fn parse_bash_lc_commands(original: &[String]) -> Option> { } => { if had_connectors { ParsedCommand::Search { - cmd: cmd, + cmd, query, path, } diff --git a/codex-rs/login/src/server.rs b/codex-rs/login/src/server.rs index 6a64d96f61..2cf1189f4c 100644 --- a/codex-rs/login/src/server.rs +++ b/codex-rs/login/src/server.rs @@ -42,7 +42,7 @@ impl ServerOptions { pub fn new(codex_home: PathBuf, client_id: String) -> Self { Self { codex_home, - client_id: client_id, + client_id, issuer: DEFAULT_ISSUER.to_string(), port: DEFAULT_PORT, open_browser: true, diff --git a/codex-rs/tui/src/bottom_pane/textarea.rs b/codex-rs/tui/src/bottom_pane/textarea.rs index 8b7dc8fe33..54366ae084 100644 --- a/codex-rs/tui/src/bottom_pane/textarea.rs +++ b/codex-rs/tui/src/bottom_pane/textarea.rs @@ -650,7 +650,7 @@ impl TextArea { fn add_element(&mut self, range: Range) { let elem = TextElement { - range: range, + range, }; self.elements.push(elem); self.elements.sort_by_key(|e| e.range.start);