Merge pull request #1 from dripton/dripton-extra-parens

Remove extra parentheses to fix a warning
This commit is contained in:
David Ripton 2015-10-19 09:48:53 -04:00
commit f53f62737c
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
//! fn fib(n: usize) -> BigUint {
//! let mut f0: BigUint = Zero::zero();
//! let mut f1: BigUint = One::one();
//! for _ in (0..n) {
//! for _ in 0..n {
//! let f2 = f0 + &f1;
//! // This is a low cost way of swapping f0 with f1 and f1 with f2.
//! f0 = replace(&mut f1, f2);
@ -1633,7 +1633,7 @@ impl<R: Rng> RandBigInt for R {
fn gen_biguint(&mut self, bit_size: usize) -> BigUint {
let (digits, rem) = bit_size.div_rem(&big_digit::BITS);
let mut data = Vec::with_capacity(digits+1);
for _ in (0 .. digits) {
for _ in 0 .. digits {
data.push(self.gen());
}
if rem > 0 {