From 1a612c92d3d864ff9af6fef54d6ddfbc21b41696 Mon Sep 17 00:00:00 2001 From: Caemor <11088935+caemor@users.noreply.github.com> Date: Sat, 23 Jan 2021 16:23:36 +0100 Subject: [PATCH] Fix missing Eq for OutofColorRangeParseError --- src/color.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/color.rs b/src/color.rs index c3092ca..2c4435a 100644 --- a/src/color.rs +++ b/src/color.rs @@ -11,7 +11,7 @@ pub use BinaryColor::Off as White; pub use BinaryColor::On as Black; /// When trying to parse u8 to one of the color types -#[derive(Debug)] +#[derive(Debug, PartialEq, Eq)] pub struct OutOfColorRangeParseError(u8); impl core::fmt::Display for OutOfColorRangeParseError { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {