]> git.lizzy.rs Git - rust.git/blobdiff - src/test/bench/shootout-fannkuch-redux.rs
remove unnecessary parentheses from range notation
[rust.git] / src / test / bench / shootout-fannkuch-redux.rs
index e8e8ac484852826aca4abb29dc9c348f2c435114..daabae88bdf614a4842d145f493f635b88ffbe00 100644 (file)
@@ -103,7 +103,7 @@ fn get(&mut self, mut idx: i32) -> P {
             let d = idx / self.fact[i] as i32;
             self.cnt[i] = d;
             idx %= self.fact[i] as i32;
-            for (place, val) in pp.iter_mut().zip(self.perm.p[..(i+1)].iter()) {
+            for (place, val) in pp.iter_mut().zip(self.perm.p[..i+1].iter()) {
                 *place = (*val) as u8
             }