fix(lint): collapse nested if-let into a let-chain in codex responses reasoning shaping — newer clippy (1.96) flags collapsible_if on if-let nesting and CI lints with -D warnings
Co-Authored-By: Claude <noreply@anthropic.com> https://claude.ai/code/session_018zaP8vUfTAsrE38L6h6fw5
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user