diff --git a/codex-rs/core/src/auth.rs b/codex-rs/core/src/auth.rs index 804512e20e..2c20228df3 100644 --- a/codex-rs/core/src/auth.rs +++ b/codex-rs/core/src/auth.rs @@ -135,8 +135,7 @@ impl CodexAuth { } pub fn get_account_id(&self) -> Option { - self.get_current_token_data() - .and_then(|t| t.account_id) + self.get_current_token_data().and_then(|t| t.account_id) } pub fn get_plan_type(&self) -> Option { diff --git a/codex-rs/core/src/codex.rs b/codex-rs/core/src/codex.rs index 8e444faa92..3d07502b9f 100644 --- a/codex-rs/core/src/codex.rs +++ b/codex-rs/core/src/codex.rs @@ -207,12 +207,7 @@ impl Codex { let conversation_id = session.conversation_id; // This task will run until Op::Shutdown is received. - tokio::spawn(submission_loop( - session, - turn_context, - config, - rx_sub, - )); + tokio::spawn(submission_loop(session, turn_context, config, rx_sub)); let codex = Codex { next_id: AtomicU64::new(0), tx_sub, diff --git a/codex-rs/core/src/parse_command.rs b/codex-rs/core/src/parse_command.rs index 3095b6901f..ea886d61f0 100644 --- a/codex-rs/core/src/parse_command.rs +++ b/codex-rs/core/src/parse_command.rs @@ -1201,10 +1201,7 @@ fn parse_bash_lc_commands(original: &[String]) -> Option> { name, } } else { - ParsedCommand::Read { - cmd, - name, - } + ParsedCommand::Read { cmd, name } } } else { ParsedCommand::Read { @@ -1215,10 +1212,7 @@ fn parse_bash_lc_commands(original: &[String]) -> Option> { } ParsedCommand::ListFiles { path, cmd, .. } => { if had_connectors { - ParsedCommand::ListFiles { - cmd, - path, - } + ParsedCommand::ListFiles { cmd, path } } else { ParsedCommand::ListFiles { cmd: shlex_join(&script_tokens), @@ -1230,11 +1224,7 @@ fn parse_bash_lc_commands(original: &[String]) -> Option> { query, path, cmd, .. } => { if had_connectors { - ParsedCommand::Search { - cmd, - query, - path, - } + ParsedCommand::Search { cmd, query, path } } else { ParsedCommand::Search { cmd: shlex_join(&script_tokens), diff --git a/codex-rs/tui/src/bottom_pane/textarea.rs b/codex-rs/tui/src/bottom_pane/textarea.rs index 54366ae084..9166b8c7f6 100644 --- a/codex-rs/tui/src/bottom_pane/textarea.rs +++ b/codex-rs/tui/src/bottom_pane/textarea.rs @@ -649,9 +649,7 @@ impl TextArea { } fn add_element(&mut self, range: Range) { - let elem = TextElement { - range, - }; + let elem = TextElement { range }; self.elements.push(elem); self.elements.sort_by_key(|e| e.range.start); }