Skip to content

Commit

Permalink
Use MAX instead of max_value() (#35)
Browse files Browse the repository at this point in the history
max_value() is soft deprecated
  • Loading branch information
pickfire authored Jun 2, 2020
1 parent 232eca0 commit 0b46851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pub(crate) mod internal {
}
use internal::Lean;

const MASK_LO: usize = u32::max_value() as usize;
const MASK_HI: usize = !(u32::max_value() as usize);
const MASK_LO: usize = u32::MAX as usize;
const MASK_HI: usize = !MASK_LO;

impl Lean {
#[inline]
Expand Down

0 comments on commit 0b46851

Please sign in to comment.