modes:mod: use matches! instead of assert!(match...)

Give it up for Clippy, MVP of this codebase.
This commit is contained in:
2026-04-02 05:47:24 +01:00
committed by oreodave
parent 71f644043a
commit f5fa964e55

View File

@@ -24,13 +24,13 @@ mod tests {
) -> (Footstool, Footstool) { ) -> (Footstool, Footstool) {
let res1 = x.footstool(y); let res1 = x.footstool(y);
let res2 = y.footstool(x); let res2 = y.footstool(x);
assert!(match (res1, res2) { matches!(
(res1, res2),
(Footstool::None, Footstool::None) (Footstool::None, Footstool::None)
| (Footstool::None, Footstool::Half) | (Footstool::None, Footstool::Half)
| (Footstool::Half, Footstool::None) | (Footstool::Half, Footstool::None)
| (Footstool::Full, Footstool::Full) => true, | (Footstool::Full, Footstool::Full)
_ => false, );
});
(res1, res2) (res1, res2)
} }
} }