fix(grid): derive partialeq for cell and grid

This commit is contained in:
Mohammed Amar-Bensaber 2024-12-07 18:00:03 +01:00
parent 9630ee6cf4
commit 0b44a2e50d
Signed by: renken
GPG key ID: 1F2BB159B645E575

View file

@ -1,4 +1,4 @@
#[derive(Clone, Default, Debug)] #[derive(Clone, Default, Debug, PartialEq)]
pub enum Cell { pub enum Cell {
/// Filled. /// Filled.
Filled, Filled,
@ -9,7 +9,7 @@ pub enum Cell {
} }
/// A NxM dimensional grid of cells. /// A NxM dimensional grid of cells.
#[derive(Debug, Default)] #[derive(Debug, Default, PartialEq)]
pub struct Grid { pub struct Grid {
/// Cells. /// Cells.
pub cells: Vec<Vec<Cell>>, pub cells: Vec<Vec<Cell>>,