From fe85da4ba4e3cd448c1cf907a79584d05411dc50 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Tue, 13 Jan 2026 14:47:05 -0800 Subject: [PATCH] clean --- codex-rs/core/src/codex.rs | 7 ++++++- codex-rs/protocol/src/openai_models.rs | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/src/codex.rs b/codex-rs/core/src/codex.rs index 46f25312c3..ec097b6150 100644 --- a/codex-rs/core/src/codex.rs +++ b/codex-rs/core/src/codex.rs @@ -255,7 +255,12 @@ impl Codex { let config = Arc::new(config); // todo(aibrahim): this should be done on models manager startup instead of here - let _ = models_manager.list_models(&config, crate::models_manager::manager::RefreshStrategy::default()).await; + let _ = models_manager + .list_models( + &config, + crate::models_manager::manager::RefreshStrategy::default(), + ) + .await; let model = models_manager .get_default_model( &config.model, diff --git a/codex-rs/protocol/src/openai_models.rs b/codex-rs/protocol/src/openai_models.rs index 896734df23..d16979c709 100644 --- a/codex-rs/protocol/src/openai_models.rs +++ b/codex-rs/protocol/src/openai_models.rs @@ -258,7 +258,10 @@ impl ModelPreset { /// Merge remote presets with existing presets, preferring remote when slugs match. /// /// Remote presets take precedence. Existing presets not in remote are appended with `is_default` set to false. - pub fn merge(remote_presets: Vec, existing_presets: Vec) -> Vec { + pub fn merge( + remote_presets: Vec, + existing_presets: Vec, + ) -> Vec { if remote_presets.is_empty() { return existing_presets; }