[board] Use absolute paths with $crate in the piece! macro
This commit is contained in:
parent
a6b98abb95
commit
e9607573c2
1 changed files with 2 additions and 2 deletions
|
@ -124,10 +124,10 @@ pub enum PiecePlacementError {
|
|||
#[macro_export]
|
||||
macro_rules! piece {
|
||||
($color:ident $shape:ident) => {
|
||||
Piece::new(Color::$color, Shape::$shape)
|
||||
$crate::piece::Piece::new($crate::piece::Color::$color, $crate::piece::Shape::$shape)
|
||||
};
|
||||
($color:ident $shape:ident on $square:ident) => {
|
||||
PlacedPiece::new(piece!($color $shape), Square::$square)
|
||||
$crate::piece::PlacedPiece::new(piece!($color $shape), $crate::square::Square::$square)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue