From f1f6198e5f7487f8f171ba8d74a9e504cfcb22aa Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 18 Jul 2022 00:32:40 +0200 Subject: [PATCH] Make use of 'Bitboard::is_empty' --- src/board/directions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/board/directions.rs b/src/board/directions.rs index 26b75de..135f5f4 100644 --- a/src/board/directions.rs +++ b/src/board/directions.rs @@ -126,7 +126,7 @@ impl Direction { let mut res = Default::default(); - while board != Bitboard::EMPTY { + while !board.is_empty() { board = self.move_board(board); res = res | board; }