1
0
Fork 0

edition 2021 -> 2024

This commit is contained in:
Paul-Nicolas Madelaine 2025-11-17 22:07:04 +01:00
parent 0cc2402991
commit c0e915f1b4
4 changed files with 19 additions and 15 deletions

View file

@ -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) }),