Skip to content

Commit

Permalink
bigint tests: Use Limb::MAX instead of LimbMask::True.
Browse files Browse the repository at this point in the history
Avoid an `as` conversion.
  • Loading branch information
briansmith committed Dec 6, 2024
1 parent 224bd7d commit 9adb1a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/limb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ prefixed_extern! {
mod tests {
use super::*;

const MAX: Limb = LimbMask::True as Limb;
const MAX: Limb = Limb::MAX;

#[test]
fn test_limbs_are_even() {
Expand Down Expand Up @@ -590,7 +590,7 @@ mod tests {

#[test]
fn test_limbs_minimal_bits() {
const ALL_ONES: Limb = LimbMask::True as Limb;
const ALL_ONES: Limb = Limb::MAX;
static CASES: &[(&[Limb], usize)] = &[
(&[], 0),
(&[0], 0),
Expand Down

0 comments on commit 9adb1a7

Please sign in to comment.