[board] Refer to Position with $crate in the position! macro
This commit is contained in:
parent
c8db5a430d
commit
2d4ad70994
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue