diff --git a/src/moves.rs b/src/moves.rs index 27b5a8a..c3c640d 100644 --- a/src/moves.rs +++ b/src/moves.rs @@ -20,6 +20,7 @@ pub struct Move<'l> { } impl<'l> Move<'l> { + #[inline] pub(crate) unsafe fn new_unchecked(position: &'l Position, raw: RawMove) -> Self { Self { position, raw } } @@ -28,6 +29,7 @@ impl<'l> Move<'l> { /// /// This sets the en passant square after a double pawn advance, even when there is no pawn to /// capture or when capturing is not legal. + #[inline] pub fn make(self) -> Position { let mut position = self.position.clone(); unsafe { position.play_unchecked(self.raw) };