Skip to content

Commit 8623ef4

Browse files
rustyconoverclaude
andcommitted
CI: fix clippy collapsible_match on stable 1.96
rustc 1.96 expanded clippy::collapsible_match to flag a match arm whose sole body is an `if`, breaking the `-D warnings` gate (CI runs dtolnay/rust-toolchain@stable = 1.96.1; local was 1.90). Move the pacs.002 `find_first(...).is_none()` check into a match guard as clippy suggests. No behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent daff242 commit 8623ef4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

crates/iso20022-core/src/validate.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,8 @@ fn validate_mx(xml: &str, id: &str, errors: &mut Vec<String>) {
177177
check_amount_node(Some(amt), "Amt", errors);
178178
}
179179
}
180-
"pacs.002" => {
181-
if root.find_first("FIToFIPmtStsRpt").is_none() {
182-
errors.push("MX020: pacs.002 missing FIToFIPmtStsRpt".into());
183-
}
180+
"pacs.002" if root.find_first("FIToFIPmtStsRpt").is_none() => {
181+
errors.push("MX020: pacs.002 missing FIToFIPmtStsRpt".into());
184182
}
185183
_ => {}
186184
}

0 commit comments

Comments
 (0)