From fb53dc186678bb1ab043c9d6ed1ee77509f49f8c Mon Sep 17 00:00:00 2001 From: Hunter B Date: Fri, 12 Jun 2026 01:50:52 -0700 Subject: [PATCH] chore(tui): satisfy release clippy gate --- crates/tui/src/config.rs | 15 ++++++--------- crates/tui/src/core/engine/turn_loop.rs | 2 +- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/crates/tui/src/config.rs b/crates/tui/src/config.rs index c55ab80e..08ddaec7 100644 --- a/crates/tui/src/config.rs +++ b/crates/tui/src/config.rs @@ -2393,16 +2393,13 @@ impl Config { where F: Fn(&ProviderConfig) -> Option, { - if let Some(value) = self - .provider_config_for(provider) - .and_then(|entry| get(entry)) - { + if let Some(value) = self.provider_config_for(provider).and_then(&get) { return Some(value); } if provider == ApiProvider::SiliconflowCn { return self .provider_config_for(ApiProvider::Siliconflow) - .and_then(|entry| get(entry)); + .and_then(get); } None } @@ -2447,10 +2444,10 @@ impl Config { // provider (e.g. `MiniMax-M2.7` on an OpenAI-compatible endpoint). // It must pass through verbatim rather than fall back to a // DeepSeek/provider default (issue #1714). - if !matches!(provider, ApiProvider::Deepseek | ApiProvider::DeepseekCN) { - if !model.is_empty() { - return model.to_string(); - } + if !matches!(provider, ApiProvider::Deepseek | ApiProvider::DeepseekCN) + && !model.is_empty() + { + return model.to_string(); } } // The Codex Responses backend only serves its own model family, and a diff --git a/crates/tui/src/core/engine/turn_loop.rs b/crates/tui/src/core/engine/turn_loop.rs index 0fc4676f..267a89b0 100644 --- a/crates/tui/src/core/engine/turn_loop.rs +++ b/crates/tui/src/core/engine/turn_loop.rs @@ -247,7 +247,7 @@ impl Engine { stream_retry_attempts, ) { let message = "No new user, tool, sub-agent, or continuation input since the last provider request; ending turn instead of dispatching a runtime-prompt-only request."; - crate::logging::warn(message.to_string()); + crate::logging::warn(message); let _ = self.tx_event.send(Event::status(message)).await; break; }