diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-08-24 02:36:14 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-08-24 02:36:14 +0300 |
commit | 791ba3906d0ec41f328c20a9a1be8eabb12a84c6 (patch) | |
tree | 84c7281df28c92dacbdae7f4aee26f38397d43ab /src/board/move_generation.rs | |
parent | 85fbcdadec3853a92da6d434dbc94bb85bdfdcfe (diff) | |
download | chessnost-791ba3906d0ec41f328c20a9a1be8eabb12a84c6.tar.gz |
perf: use iterator in bitboard serialization
Diffstat (limited to 'src/board/move_generation.rs')
-rw-r--r-- | src/board/move_generation.rs | 1 |
1 files changed, 0 insertions, 1 deletions
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() { |