clippy
This commit is contained in:
parent
ebd2ea14cd
commit
0b29af8515
@ -457,9 +457,9 @@ impl epi::App for MathApp {
|
|||||||
if let Some(bars_data) = bars {
|
if let Some(bars_data) = bars {
|
||||||
let (bar_chart, area) = bars_data;
|
let (bar_chart, area) = bars_data;
|
||||||
plot_ui.bar_chart(bar_chart.color(Color32::BLUE).width(step));
|
plot_ui.bar_chart(bar_chart.color(Color32::BLUE).width(step));
|
||||||
return digits_precision(area, 8);
|
digits_precision(area, 8)
|
||||||
} else {
|
} else {
|
||||||
return f64::NAN;
|
f64::NAN
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|||||||
@ -142,9 +142,9 @@ impl Function {
|
|||||||
let i_option = x_data.iter().position(|&r| r == x); // Optimize this later, this could be done much much better, but tbh it doesn't matter that much as the program is already super fast
|
let i_option = x_data.iter().position(|&r| r == x); // Optimize this later, this could be done much much better, but tbh it doesn't matter that much as the program is already super fast
|
||||||
|
|
||||||
if let Some(i) = i_option {
|
if let Some(i) = i_option {
|
||||||
return back_cache[i];
|
back_cache[i]
|
||||||
} else {
|
} else {
|
||||||
return Value::new(x, self.run_func(x));
|
Value::new(x, self.run_func(x))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.collect(),
|
.collect(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user