diff --git a/board/src/piece.rs b/board/src/piece.rs index e8a8cbb..5d8fc8a 100644 --- a/board/src/piece.rs +++ b/board/src/piece.rs @@ -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) } }