This commit is contained in:
Simon Gardling 2022-04-09 21:12:21 -04:00
parent 04201de443
commit 7317d89382

View File

@ -36,7 +36,7 @@ impl<'a> AutoComplete<'a> {
fn changed(&mut self, string: &str) { fn changed(&mut self, string: &str) {
let new_func_option = Some(string.to_string()); let new_func_option = Some(string.to_string());
if self.string != new_func_option { if self.string != new_func_option {
self.string = new_func_option.clone(); self.string = new_func_option;
self.hint = generate_hint(string); self.hint = generate_hint(string);
} }
} }