fix: avoid let-chain (needs edition 2024) in mcp bearer rewriter
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:
co-authored by
Claude Opus 4.7
parent
49f94a5360
commit
cbb709e31d
@@ -656,12 +656,11 @@ 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);
|
||||||
{
|
continue;
|
||||||
out.push_str(r);
|
}
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
out.push_str(line);
|
out.push_str(line);
|
||||||
out.push('\n');
|
out.push('\n');
|
||||||
|
|||||||
Reference in New Issue
Block a user