From 956a309002f51805b23df430c26aed1e1c59f89d Mon Sep 17 00:00:00 2001 From: "James MacAdie (TT sandbox)" Date: Sat, 24 Feb 2024 15:08:00 +0000 Subject: [PATCH] Derive Eq trait for FromHexError Without this we cannot derive Eq on enums & structs that contain a FromHexError. It is trivial to derive since all the elements of FromHexError implement Eq already --- src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index fb04a32..149430d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -3,7 +3,7 @@ use core::fmt; /// The error type for decoding a hex string into `Vec` or `[u8; N]`. -#[derive(Debug, Clone, Copy, PartialEq)] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] #[allow(clippy::module_name_repetitions)] pub enum FromHexError { /// An invalid character was found. Valid ones are: `0...9`, `a...f`