From 791ba3906d0ec41f328c20a9a1be8eabb12a84c6 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 24 Aug 2023 02:36:14 +0300 Subject: perf: use iterator in bitboard serialization --- src/board/move_generation.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/board/move_generation.rs') diff --git a/src/board/move_generation.rs b/src/board/move_generation.rs index 98df056..0735309 100644 --- a/src/board/move_generation.rs +++ b/src/board/move_generation.rs @@ -99,7 +99,6 @@ impl Board { if player_pieces[Piece::King as usize].bitscan() == king_home_position { for rook_square in player_pieces[Piece::Rook as usize] .serialize() - .iter() .filter(|rook_square| rook_square.rank() == king_home_position.rank()) { match rook_square.file() { -- cgit v1.2.3