diff --git a/src/biguint.rs b/src/biguint.rs index 196fa323..463b3062 100644 --- a/src/biguint.rs +++ b/src/biguint.rs @@ -11,7 +11,7 @@ use core::mem; use core::str; use num_integer::{Integer, Roots}; -use num_traits::{ConstZero, Num, One, Pow, ToPrimitive, Unsigned, Zero}; +use num_traits::{bounds::LowerBounded, ConstZero, Num, One, Pow, ToPrimitive, Unsigned, Zero}; mod addition; mod division; @@ -161,6 +161,12 @@ impl ConstZero for BigUint { const ZERO: Self = Self::ZERO; // BigUint { data: Vec::new() }; } +impl LowerBounded for BigUint { + fn min_value() -> Self { + Self::ZERO + } +} + impl One for BigUint { #[inline] fn one() -> BigUint {