diff --git a/src/biguint.rs b/src/biguint.rs index 52276e5e..7022831e 100644 --- a/src/biguint.rs +++ b/src/biguint.rs @@ -914,7 +914,7 @@ impl MulAssign for BigUint { if other == 0 { self.data.clear(); } else if other <= BigDigit::max_value() as u128 { - *self *= other + *self *= other as BigDigit } else { let (hi, lo) = big_digit::from_doublebigdigit(other); *self = mul3(&self.data[..], &[lo, hi]) @@ -1525,7 +1525,7 @@ impl ToPrimitive for BigUint { ret |= (*i as u128) << bits; bits += big_digit::BITS; } - println!("{:?} -> {}", self, ret); + Some(ret) }