This commit is contained in:
Simon Gardling
2022-02-23 01:52:10 -05:00
parent 7a00ed62f6
commit 1dc42105f2
2 changed files with 8 additions and 18 deletions

View File

@@ -233,9 +233,7 @@ impl ChartManager {
// Creates and does the math for creating all the rectangles under the graph
#[inline]
fn integral_rectangles(
&self, step: f32
) -> (Vec<(f32, f32, f32)>, f32) {
fn integral_rectangles(&self, step: f32) -> (Vec<(f32, f32, f32)>, f32) {
let data2: Vec<(f32, f32, f32)> = (0..self.num_interval)
.map(|e| {
let x: f32 = ((e as f32) * step) + self.min_x;