Piece derives Copy

This commit is contained in:
tali 2023-03-07 19:10:16 -05:00
parent 111ca1a7bb
commit c2e91dc30a
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ impl core::fmt::Debug for Cells<'_> {
}
/// Represents the current state of a piece.
#[derive(Clone, Eq, PartialEq, Debug, Hash)]
#[derive(Copy, Clone, Eq, PartialEq, Debug, Hash)]
pub struct Piece<T> {
/// The piece type (i.e. its shape).
pub ty: T,