[board] Pass piece argument to Position::bitboard_for_piece() by value instead of by reference
This commit is contained in:
parent
4bec1538a1
commit
50a6be2f72
2 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ impl<'a> Iterator for Pieces<'a> {
|
|||
while let Some(shape) = self.shape_iterator.next() {
|
||||
let piece = Piece::new(self.color, shape);
|
||||
|
||||
let bitboard = self.position.bitboard_for_piece(&piece);
|
||||
let bitboard = self.position.bitboard_for_piece(piece);
|
||||
if bitboard.is_empty() {
|
||||
println!("No {:?} pieces; looping", &piece);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue