Refactor some clippy-pedantic errors

This commit is contained in:
stefiosif
2024-09-06 20:30:57 +03:00
parent 6b9650a6f0
commit 2093d91dfa
12 changed files with 42 additions and 47 deletions

View File

@@ -62,8 +62,9 @@ impl State {
self.update_castling_state_capture(src, color);
match (src, color) {
(4, Color::White) => self.set_castling_ability(color, Castle::None),
(60, Color::Black) => self.set_castling_ability(color, Castle::None),
(4, Color::White) | (60, Color::Black) => {
self.set_castling_ability(color, Castle::None)
}
_ => (),
}
}