[position] Remove an unnecessary type annotation
This commit is contained in:
parent
b93f8684fa
commit
13e166e059
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ where
|
|||
|
||||
let player = self.position.player_to_move();
|
||||
|
||||
let captured_piece: Option<PlacedPiece> = if mv.is_en_passant() {
|
||||
let captured_piece = if mv.is_en_passant() {
|
||||
// En passant captures the pawn directly ahead (in the player's direction) of the en passant square.
|
||||
let capture_square = match player {
|
||||
Color::White => to_square.neighbor(Direction::South),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue