[board] Remove turbofish from PieceSet pipeline in Builder::build()
This commit is contained in:
parent
da4e2f1d50
commit
fff2e084b5
1 changed files with 3 additions and 3 deletions
|
@ -89,18 +89,18 @@ impl Builder {
|
|||
}
|
||||
|
||||
pub fn build(&self) -> Board {
|
||||
let pieces = self
|
||||
let pieces: PieceSet = self
|
||||
.pieces
|
||||
.iter()
|
||||
.map(PlacedPiece::from)
|
||||
.filter(Self::is_piece_placement_valid)
|
||||
.collect::<PieceBitBoards>();
|
||||
.collect();
|
||||
|
||||
let mut flags = self.flags;
|
||||
|
||||
for color in Color::ALL {
|
||||
for castle in Castle::ALL {
|
||||
let parameters = castle.parameters(color);
|
||||
|
||||
let has_rook_on_starting_square = self
|
||||
.pieces
|
||||
.get(parameters.rook_origin_square())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue