diff --git a/src/hash.rs b/src/hash.rs index 39233ea83..081b0df02 100644 --- a/src/hash.rs +++ b/src/hash.rs @@ -9,6 +9,7 @@ use rand::os::OsRng; macro_rules! impl_hash { ($from: ident, $size: expr) => { + #[derive(Eq)] pub struct $from (pub [u8; $size]); impl $from { @@ -71,7 +72,6 @@ macro_rules! impl_hash { true } } - impl Eq for $from { } impl Hash for $from { fn hash(&self, state: &mut H) where H: Hasher {