[board] Convert a few more Piece and PlacedPiece to pass by ref

This commit is contained in:
Eryn Wells 2024-01-21 10:39:57 -08:00
parent 8835d8b40e
commit 683d89b726
2 changed files with 4 additions and 4 deletions

View file

@ -156,7 +156,7 @@ impl<'p> Builder<'p, ValidatedMove> {
if let Some(promotion) = promotion {
pieces.remove_piece(&moving_piece);
let _ = pieces
.place_piece(PlacedPiece::new(Piece::new(player, promotion), to_square));
.place_piece(&PlacedPiece::new(Piece::new(player, promotion), to_square));
} else {
pieces.move_piece(moving_piece.piece(), from_square, to_square);
}