From 0b44a2e50d4d1e21e58b8ab540ec8c506c23aa52 Mon Sep 17 00:00:00 2001 From: Mohammed Amar-Bensaber Date: Sat, 7 Dec 2024 18:00:03 +0100 Subject: [PATCH] fix(grid): derive partialeq for cell and grid --- src/grid.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grid.rs b/src/grid.rs index 9a4ec71..03e6c92 100644 --- a/src/grid.rs +++ b/src/grid.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Default, Debug)] +#[derive(Clone, Default, Debug, PartialEq)] pub enum Cell { /// Filled. Filled, @@ -9,7 +9,7 @@ pub enum Cell { } /// A NxM dimensional grid of cells. -#[derive(Debug, Default)] +#[derive(Debug, Default, PartialEq)] pub struct Grid { /// Cells. pub cells: Vec>,