From 5b45e50f4ff5aa21d7ce791bfd85f14700085ba3 Mon Sep 17 00:00:00 2001 From: Emilia Date: Thu, 2 Jan 2025 21:19:51 -0500 Subject: [PATCH] Add Hash impl to lib plate types --- plate-tool-lib/src/plate.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plate-tool-lib/src/plate.rs b/plate-tool-lib/src/plate.rs index 2a5158c..ed8e3a1 100644 --- a/plate-tool-lib/src/plate.rs +++ b/plate-tool-lib/src/plate.rs @@ -1,6 +1,6 @@ use serde::{Deserialize, Serialize}; -#[derive(PartialEq, Eq, Default, Clone, Copy, Serialize, Deserialize, Debug)] +#[derive(PartialEq, Eq, Default, Clone, Copy, Serialize, Deserialize, Debug, Hash)] pub struct Plate { pub plate_type: PlateType, pub plate_format: PlateFormat, @@ -19,7 +19,7 @@ impl Plate { } } -#[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize, Debug)] +#[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize, Debug, Hash)] pub enum PlateType { Source, Destination, @@ -30,7 +30,7 @@ impl Default for PlateType { } } -#[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize, Debug)] +#[derive(PartialEq, Eq, Clone, Copy, Serialize, Deserialize, Debug, Hash)] pub enum PlateFormat { W6, W12,