edition 2021 -> 2024
This commit is contained in:
parent
0cc2402991
commit
c0e915f1b4
4 changed files with 19 additions and 15 deletions
|
|
@ -42,7 +42,7 @@ impl Bitboard {
|
|||
|
||||
#[inline]
|
||||
pub const fn pop(&mut self) -> Option<Square> {
|
||||
let Self(ref mut mask) = self;
|
||||
let mask = &mut self.0;
|
||||
let square = match mask {
|
||||
0 => None,
|
||||
_ => Some(unsafe { Square::new_unchecked(mask.trailing_zeros() as u8) }),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue