fix unnecessary unwrap
This commit is contained in:
parent
da1be37010
commit
2cdf5ccd31
@ -260,8 +260,8 @@ impl epi::App for MathApp {
|
||||
let (back_values, bars) = function.run();
|
||||
plot_ui.line(back_values.color(Color32::RED));
|
||||
|
||||
if bars.is_some() {
|
||||
let (bars, area) = bars.unwrap();
|
||||
if let Some(bars_data) = bars {
|
||||
let (bars, area) = bars_data;
|
||||
plot_ui.bar_chart(BarChart::new(bars).color(Color32::BLUE).width(step));
|
||||
area_list.push(digits_precision(area, 8))
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user