From 9adb1a7c877eddbe69c6bf93bd3a2f11ba332ee2 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Fri, 6 Dec 2024 14:32:29 -0800 Subject: [PATCH] bigint tests: Use `Limb::MAX` instead of `LimbMask::True`. Avoid an `as` conversion. --- src/limb.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/limb.rs b/src/limb.rs index b18f929bab..1a37147c53 100644 --- a/src/limb.rs +++ b/src/limb.rs @@ -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() { @@ -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),