fix: avoid let-chain (needs edition 2024) in mcp bearer rewriter
ci / gates (push) Successful in 6s
ci / rust (push) Failing after 39s
ci / frontend (push) Successful in 39s
ci / e2e (push) Skipped
ci / publish (push) Skipped

CI's fmt check runs on stable toolchain that rejects let chains in
if conditions. Nest the `if let` inside the block instead.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
This commit is contained in:
Omar Sobh
2026-07-18 14:41:11 -07:00
co-authored by Claude Opus 4.7
parent 49f94a5360
commit cbb709e31d
+3 -4
View File
@@ -656,13 +656,12 @@ fn prewrite_daemon_config_with_risk(
)); ));
continue; continue;
} }
if in_agent_block if in_agent_block && trimmed.starts_with("risk_profile = \"") {
&& trimmed.starts_with("risk_profile = \"") if let Some(r) = &risk_replacement {
&& let Some(r) = &risk_replacement
{
out.push_str(r); out.push_str(r);
continue; continue;
} }
}
out.push_str(line); out.push_str(line);
out.push('\n'); out.push('\n');
} }