use &str not String for process_func_str

This commit is contained in:
Simon Gardling
2022-03-22 09:20:57 -04:00
parent 3388bf4c6d
commit 7a309fdd00
2 changed files with 4 additions and 4 deletions

View File

@@ -481,7 +481,7 @@ impl MathApp {
ui.text_edit_singleline(&mut self.func_strs[i]);
});
let proc_func_str = process_func_str(self.func_strs[i].clone());
let proc_func_str = process_func_str(&self.func_strs[i]);
if configs_changed
| integral_toggle | derivative_toggle
| (proc_func_str != function.get_func_str())