aboutsummaryrefslogtreecommitdiff
path: root/src/board/move_generation.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-08-24 02:36:14 +0300
committereug-vs <eugene@eug-vs.xyz>2023-08-24 02:36:14 +0300
commit791ba3906d0ec41f328c20a9a1be8eabb12a84c6 (patch)
tree84c7281df28c92dacbdae7f4aee26f38397d43ab /src/board/move_generation.rs
parent85fbcdadec3853a92da6d434dbc94bb85bdfdcfe (diff)
downloadchessnost-791ba3906d0ec41f328c20a9a1be8eabb12a84c6.tar.gz
perf: use iterator in bitboard serialization
Diffstat (limited to 'src/board/move_generation.rs')
-rw-r--r--src/board/move_generation.rs1
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() {