[board] Remove the FromIterator<PlacedPiece> impl for PieceSet

This commit is contained in:
Eryn Wells 2025-05-19 08:37:04 -07:00
parent 67448b44d7
commit 6e0e33b5f9

View file

@ -132,18 +132,6 @@ impl PieceSet {
}
}
impl FromIterator<PlacedPiece> for PieceSet {
fn from_iter<T: IntoIterator<Item = PlacedPiece>>(iter: T) -> Self {
let mut pieces: Self = Self::default();
for piece in iter {
let _ = pieces.place(piece.piece, piece.square, PlacePieceStrategy::default());
}
pieces
}
}
#[cfg(test)]
mod tests {
use super::*;