Skip to content

Commit

Permalink
Remove leading colons from impl_array_newtype methods
Browse files Browse the repository at this point in the history
The leading colons are an artifact of Rust 1.29, remove them.
  • Loading branch information
tcharding committed Nov 17, 2022
1 parent 2bb08c2 commit 9788b6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions secp256k1-sys/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ macro_rules! impl_array_newtype {

impl Eq for $thing {}

impl ::core::hash::Hash for $thing {
fn hash<H: ::core::hash::Hasher>(&self, state: &mut H) {
impl core::hash::Hash for $thing {
fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
(&self[..]).hash(state)
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ macro_rules! impl_array_newtype {

impl Eq for $thing {}

impl ::core::hash::Hash for $thing {
fn hash<H: ::core::hash::Hasher>(&self, state: &mut H) {
impl core::hash::Hash for $thing {
fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
(&self[..]).hash(state)
}
}
Expand Down

0 comments on commit 9788b6d

Please sign in to comment.