[bitboard,core,position] Address a bunch of clippy warnings
This commit is contained in:
parent
d0abbd8f93
commit
27a36565f3
8 changed files with 63 additions and 32 deletions
|
@ -12,17 +12,21 @@ use crate::BitBoard;
|
|||
use chessfriend_core::{Color, Direction, Square};
|
||||
use std::sync::OnceLock;
|
||||
|
||||
#[allow(clippy::identity_op)]
|
||||
#[allow(clippy::erasing_op)]
|
||||
pub(crate) const RANKS: [BitBoard; 8] = [
|
||||
BitBoard(0xFF << 0 * 8),
|
||||
BitBoard(0xFF << 1 * 8),
|
||||
BitBoard(0xFF << 2 * 8),
|
||||
BitBoard(0xFF << 3 * 8),
|
||||
BitBoard(0xFF << 4 * 8),
|
||||
BitBoard(0xFF << 5 * 8),
|
||||
BitBoard(0xFF << 6 * 8),
|
||||
BitBoard(0xFF << 7 * 8),
|
||||
BitBoard(0xFF << (0 * 8)),
|
||||
BitBoard(0xFF << (1 * 8)),
|
||||
BitBoard(0xFF << (2 * 8)),
|
||||
BitBoard(0xFF << (3 * 8)),
|
||||
BitBoard(0xFF << (4 * 8)),
|
||||
BitBoard(0xFF << (5 * 8)),
|
||||
BitBoard(0xFF << (6 * 8)),
|
||||
BitBoard(0xFF << (7 * 8)),
|
||||
];
|
||||
|
||||
#[allow(clippy::identity_op)]
|
||||
#[allow(clippy::erasing_op)]
|
||||
pub(crate) const FILES: [BitBoard; 8] = [
|
||||
BitBoard(0x0101010101010101 << 0),
|
||||
BitBoard(0x0101010101010101 << 1),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue