Skip to content

Commit

Permalink
Use core::hash instead of std::hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothée Haudebourg committed Oct 20, 2021
1 parent d153b88 commit 10655c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ enum N {
impl Eq for N {}

#[cfg(not(feature = "arbitrary_precision"))]
impl std::hash::Hash for N {
fn hash<H: std::hash::Hasher>(&self, h: &mut H) {
impl core::hash::Hash for N {
fn hash<H: core::hash::Hasher>(&self, h: &mut H) {
match self {
Self::PosInt(i) => i.hash(h),
Self::NegInt(i) => i.hash(h),
Expand Down

0 comments on commit 10655c7

Please sign in to comment.