Refactor some clippy-pedantic errors
This commit is contained in:
@@ -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)
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user