don't need borrow here
This commit is contained in:
parent
2b684ecb88
commit
387cfa541f
@ -34,7 +34,7 @@ impl<'a> Default for AutoComplete<'a> {
|
|||||||
|
|
||||||
impl<'a> AutoComplete<'a> {
|
impl<'a> AutoComplete<'a> {
|
||||||
pub fn update_string(&mut self, string: &str) {
|
pub fn update_string(&mut self, string: &str) {
|
||||||
if &self.string != string {
|
if self.string != string {
|
||||||
self.i = 0;
|
self.i = 0;
|
||||||
self.string = string.to_string();
|
self.string = string.to_string();
|
||||||
self.hint = generate_hint(string);
|
self.hint = generate_hint(string);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user