From 2a021f889f8e9119bb4f63e8d753225d1a83013f Mon Sep 17 00:00:00 2001 From: Michael Fan Date: Wed, 25 Mar 2026 00:56:56 +0000 Subject: [PATCH] Format api-provision rebase merge Apply rustfmt after resolving the api_provision rebase conflict. Validation: - cargo fmt --all --manifest-path /home/dev-user/code/codex/codex-rs/Cargo.toml Co-authored-by: Codex --- codex-rs/tui/src/api_provision.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/codex-rs/tui/src/api_provision.rs b/codex-rs/tui/src/api_provision.rs index dbc62bf9f3..8ab6be41eb 100644 --- a/codex-rs/tui/src/api_provision.rs +++ b/codex-rs/tui/src/api_provision.rs @@ -96,7 +96,11 @@ fn continue_in_browser_message( ]; if browser_opened { - lines.push(" Codex tried to open this link for you.".dark_gray().into()); + lines.push( + " Codex tried to open this link for you." + .dark_gray() + .into(), + ); } else { lines.push( " Codex couldn't auto-open your browser, but the provisioning flow is still waiting." @@ -304,9 +308,7 @@ mod tests { /*browser_opened*/ false, ); - assert!( - render_cell(&cell).contains("https://auth.example.com/oauth/authorize?state=abc") - ); + assert!(render_cell(&cell).contains("https://auth.example.com/oauth/authorize?state=abc")); } fn render_cell(cell: &PlainHistoryCell) -> String {