Skip to content

Commit

Permalink
chore: fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
raklaptudirm committed Dec 6, 2024
1 parent 2c3169d commit 9808ee5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions games/src/chess/movegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct MoveGenerationInfo<'a> {
pinmask_d: BitBoard,
}

impl<'a> MoveGenerationInfo<'a> {
impl MoveGenerationInfo<'_> {
fn serialize<ML: MoveStore<Move>>(
&self,
source: Square,
Expand Down Expand Up @@ -99,7 +99,7 @@ impl<'a> MoveGenerationInfo<'a> {
}
}

impl<'a> MoveGenerationInfo<'a> {
impl MoveGenerationInfo<'_> {
fn generate_checkers(position: &Position, king: Square) -> BitBoard {
let stm = position.side_to_move();
let xtm = !stm;
Expand Down Expand Up @@ -221,7 +221,7 @@ impl<'a> MoveGenerationInfo<'a> {
}
}

impl<'a> MoveGenerationInfo<'a> {
impl MoveGenerationInfo<'_> {
fn pawn_moves<ML: MoveStore<Move>>(&self, movelist: &mut ML) {
let up = Direction::up(self.position.side_to_move());
let ue = up + Direction::East;
Expand Down

0 comments on commit 9808ee5

Please sign in to comment.