don't need borrow here

This commit is contained in:
Simon Gardling 2022-04-12 10:17:27 -04:00
parent 2b684ecb88
commit 387cfa541f

View File

@ -34,7 +34,7 @@ impl<'a> Default for AutoComplete<'a> {
impl<'a> AutoComplete<'a> {
pub fn update_string(&mut self, string: &str) {
if &self.string != string {
if self.string != string {
self.i = 0;
self.string = string.to_string();
self.hint = generate_hint(string);