[board] Refer to Position with $crate in the position! macro

This commit is contained in:
Eryn Wells 2024-01-17 08:36:00 -08:00
parent c8db5a430d
commit 2d4ad70994

View file

@ -22,7 +22,7 @@ pub(crate) enum BoardSide {
#[macro_export] #[macro_export]
macro_rules! position { macro_rules! position {
[$($color:ident $shape:ident on $square:ident,)*] => { [$($color:ident $shape:ident on $square:ident,)*] => {
Position::from_iter([ $crate::Position::from_iter([
$(piece!($color $shape on $square)),* $(piece!($color $shape on $square)),*
].into_iter()) ].into_iter())
}; };