From f65d091c6538df3c5ead493d50d54a830e67a93e Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 11 Jun 2026 04:29:24 +0000 Subject: [PATCH] =?UTF-8?q?fix(lint):=20collapse=20nested=20if-let=20into?= =?UTF-8?q?=20a=20let-chain=20in=20codex=20responses=20reasoning=20shaping?= =?UTF-8?q?=20=E2=80=94=20newer=20clippy=20(1.96)=20flags=20collapsible=5F?= =?UTF-8?q?if=20on=20if-let=20nesting=20and=20CI=20lints=20with=20-D=20war?= =?UTF-8?q?nings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude https://claude.ai/code/session_018zaP8vUfTAsrE38L6h6fw5 --- crates/tui/src/client/responses.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/tui/src/client/responses.rs b/crates/tui/src/client/responses.rs index a79f5648..9c32d730 100644 --- a/crates/tui/src/client/responses.rs +++ b/crates/tui/src/client/responses.rs @@ -61,13 +61,13 @@ impl DeepSeekClient { // map CodeWhale's effort string onto those and omit reasoning entirely // when it is disabled. CodeWhale's "auto" has no Codex equivalent and // falls back to "medium". - if let Some(raw) = request.reasoning_effort.as_deref() { - if let Some(effort) = codex_responses_reasoning_effort(raw) { - body["reasoning"] = json!({ - "effort": effort, - "summary": "auto", - }); - } + if let Some(raw) = request.reasoning_effort.as_deref() + && let Some(effort) = codex_responses_reasoning_effort(raw) + { + body["reasoning"] = json!({ + "effort": effort, + "summary": "auto", + }); } // Include reasoning summaries in the stream.