clippy
This commit is contained in:
@@ -35,7 +35,7 @@ pub struct Move {
|
||||
pub is_trimmed: bool,
|
||||
}
|
||||
|
||||
static BVM: LazyLock<BoardValueMap> = LazyLock::new(|| BoardValueMap::new());
|
||||
static BVM: LazyLock<BoardValueMap> = LazyLock::new(BoardValueMap::new);
|
||||
|
||||
impl Move {
|
||||
pub fn new(coord: Option<CoordPair>, board: Board, color: Piece, agent_color: Piece) -> Self {
|
||||
|
||||
@@ -15,7 +15,7 @@ pub enum Winner {
|
||||
}
|
||||
|
||||
/// Precompute all possible chains for each position on the board
|
||||
static ADJ_LOOKUP: LazyLock<PosMap<ChainCollection>> = LazyLock::new(|| gen_adj_lookup());
|
||||
static ADJ_LOOKUP: LazyLock<PosMap<ChainCollection>> = LazyLock::new(gen_adj_lookup);
|
||||
|
||||
/// Repersents a Othello game board at a certain space
|
||||
#[derive(Copy, Clone, PartialEq, Eq)]
|
||||
|
||||
Reference in New Issue
Block a user