improve Option handling
This commit is contained in:
parent
ed5bd66998
commit
973d774fbb
@ -178,9 +178,8 @@ impl epi::App for MathApp {
|
||||
if !self.func_strs[i].is_empty() {
|
||||
let proc_func_str = add_asterisks(self.func_strs[i].clone());
|
||||
let func_test_output = test_func(proc_func_str.clone());
|
||||
if func_test_output.is_some() {
|
||||
parse_error += &format!("(Function #{}) ", i);
|
||||
parse_error += &func_test_output.unwrap();
|
||||
if let Some(test_output_value) = func_test_output {
|
||||
parse_error += &format!("(Function #{}) {}", i, test_output_value);
|
||||
} else {
|
||||
function.update(proc_func_str, integral, Some(self.integral_min_x), Some(self.integral_max_x), Some(self.integral_num));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user