We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c87c35 commit d956e63Copy full SHA for d956e63
src/libtest/stats.rs
@@ -168,7 +168,8 @@ impl Stats for [f64] {
168
let mut j = 0;
169
// This inner loop applies `hi`/`lo` summation to each
170
// partial so that the list of partial sums remains exact.
171
- for mut y in &mut partials {
+ for i in 0..partials.len() {
172
+ let mut y: f64 = partials[i];
173
if x.abs() < y.abs() {
174
mem::swap(&mut x, &mut y);
175
}
0 commit comments