From 9788b6df880cc86787122a54fa3a546a05cb6d82 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 17 Nov 2022 10:54:06 +1100 Subject: [PATCH] Remove leading colons from impl_array_newtype methods The leading colons are an artifact of Rust 1.29, remove them. --- secp256k1-sys/src/macros.rs | 4 ++-- src/macros.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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) } }