[board] Remove the FromIterator<PlacedPiece> impl for PieceSet
This commit is contained in:
parent
67448b44d7
commit
6e0e33b5f9
1 changed files with 0 additions and 12 deletions
|
@ -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::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue