From 52a31eb4b6c93cddba96b89e1c1ebdff9a5add82 Mon Sep 17 00:00:00 2001 From: creeper6530 Date: Mon, 24 Nov 2025 20:13:01 +0100 Subject: [PATCH 1/2] Add a derive(PartialEq, Eq) to DisplayError --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 5973f68..b6ce52c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ pub mod prelude; /// A ubiquitous error type for all kinds of problems which could happen when communicating with a /// display -#[derive(Clone, Debug)] +#[derive(Clone, Debug, PartialEq, Eq)] #[cfg_attr(feature = "defmt-03", derive(defmt::Format))] #[non_exhaustive] pub enum DisplayError { From a752f9b75e36dc8f7f64eb58bf2284d9f02e0681 Mon Sep 17 00:00:00 2001 From: creeper6530 Date: Mon, 24 Nov 2025 21:19:57 +0100 Subject: [PATCH 2/2] Add a Copy derive as well --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index b6ce52c..def1c37 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ pub mod prelude; /// A ubiquitous error type for all kinds of problems which could happen when communicating with a /// display -#[derive(Clone, Debug, PartialEq, Eq)] +#[derive(Clone, Debug, PartialEq, Eq, Copy)] #[cfg_attr(feature = "defmt-03", derive(defmt::Format))] #[non_exhaustive] pub enum DisplayError {