Piece derives Copy
This commit is contained in:
parent
111ca1a7bb
commit
c2e91dc30a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue