[board, moves] Derive Clone on several error types
- PlacePieceError - MakeMoveError - UnmakeMoveError
This commit is contained in:
parent
f84319272c
commit
4b96db230d
3 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ pub enum PlacePieceStrategy {
|
|||
PreserveExisting,
|
||||
}
|
||||
|
||||
#[derive(Debug, Error, Eq, PartialEq)]
|
||||
#[derive(Clone, Debug, Error, Eq, PartialEq)]
|
||||
pub enum PlacePieceError {
|
||||
#[error("cannot place piece on {square} with existing {piece}")]
|
||||
ExisitingPiece { piece: Piece, square: Square },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue