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) {
let res1 = x.footstool(y);
let res2 = y.footstool(x);
assert!(match (res1, res2) {
matches!(
(res1, res2),
(Footstool::None, Footstool::None)
| (Footstool::None, Footstool::Half)
| (Footstool::Half, Footstool::None)
| (Footstool::Full, Footstool::Full) => true,
_ => false,
});
| (Footstool::None, Footstool::Half)
| (Footstool::Half, Footstool::None)
| (Footstool::Full, Footstool::Full)
);
(res1, res2)
}
}