From f97a5946353acada03daa15e621302b995fe9f86 Mon Sep 17 00:00:00 2001 From: Paul-Nicolas Madelaine Date: Sat, 29 Nov 2025 14:12:20 +0100 Subject: [PATCH] inline --- src/moves.rs | 2 ++ 1 file changed, 2 insertions(+) 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) };