diff --git a/secp256k1-sys/src/macros.rs b/secp256k1-sys/src/macros.rs index 6d2a0c3..a3dd1b1 100644 --- a/secp256k1-sys/src/macros.rs +++ b/secp256k1-sys/src/macros.rs @@ -47,8 +47,8 @@ macro_rules! impl_array_newtype { impl Eq for $thing {} - impl ::core::hash::Hash for $thing { - fn hash(&self, state: &mut H) { + impl core::hash::Hash for $thing { + fn hash(&self, state: &mut H) { (&self[..]).hash(state) } } diff --git a/src/macros.rs b/src/macros.rs index c028e23..8245cda 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -47,8 +47,8 @@ macro_rules! impl_array_newtype { impl Eq for $thing {} - impl ::core::hash::Hash for $thing { - fn hash(&self, state: &mut H) { + impl core::hash::Hash for $thing { + fn hash(&self, state: &mut H) { (&self[..]).hash(state) } }