Skip to content

Commit

Permalink
impl PartialEq+Eq for BuildHasherDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
crepererum committed Jul 15, 2018
1 parent 7afa0cc commit b1d2a91
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/libcore/hash/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,16 @@ impl<H> Default for BuildHasherDefault<H> {
}
}

#[stable(since = "1.29.0", feature = "build_hasher_eq")]
impl<H> PartialEq for BuildHasherDefault<H> {
fn eq(&self, _other: &BuildHasherDefault<H>) -> bool {
true
}
}

#[stable(since = "1.29.0", feature = "build_hasher_eq")]
impl<H> Eq for BuildHasherDefault<H> {}

//////////////////////////////////////////////////////////////////////////////

mod impls {
Expand Down

0 comments on commit b1d2a91

Please sign in to comment.