[board] Remove a useless .into() call

Clippy pointed this out to me. This .into() call serves no purpose.
This commit is contained in:
Eryn Wells 2025-07-12 17:09:15 -07:00
parent 45183c910c
commit 484fcf342e

View file

@ -46,7 +46,7 @@ impl Board {
let color = self.unwrap_color(color);
if !self.has_castling_right_unwrapped(color, wing.into()) {
if !self.has_castling_right_unwrapped(color, wing) {
return Err(CastleEvaluationError::NoRights { color, wing });
}