use enumerate
This commit is contained in:
parent
4e73db22f2
commit
9e01b1862c
@ -365,8 +365,7 @@ impl epi::App for MathApp {
|
|||||||
let minx_bounds: f64 = bounds.min()[0];
|
let minx_bounds: f64 = bounds.min()[0];
|
||||||
let maxx_bounds: f64 = bounds.max()[0];
|
let maxx_bounds: f64 = bounds.max()[0];
|
||||||
|
|
||||||
let mut i: usize = 0;
|
for (i, function) in self.functions.iter_mut().enumerate() {
|
||||||
for function in self.functions.iter_mut() {
|
|
||||||
if self.func_strs[i].is_empty() {
|
if self.func_strs[i].is_empty() {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -383,7 +382,6 @@ impl epi::App for MathApp {
|
|||||||
} else {
|
} else {
|
||||||
area_list.push(f64::NAN);
|
area_list.push(f64::NAN);
|
||||||
}
|
}
|
||||||
i += 1;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user