From fff2e084b5ee2b4171b2d500a42becb50e47dab8 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 13 Jul 2024 11:52:50 -0700 Subject: [PATCH] [board] Remove turbofish from PieceSet pipeline in Builder::build() --- board/src/builder.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/src/builder.rs b/board/src/builder.rs index b20cd41..e4f8ec0 100644 --- a/board/src/builder.rs +++ b/board/src/builder.rs @@ -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::(); + .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())