optimize autocomplete a bit
This commit is contained in:
parent
f775f64357
commit
d2095fb533
@ -89,9 +89,7 @@ impl<'a> AutoComplete<'a> {
|
||||
}
|
||||
}
|
||||
Movement::Complete => {
|
||||
unsafe { assume(hints.len() >= (self.i + 1)) }
|
||||
|
||||
self.apply_hint(hints[self.i]);
|
||||
self.apply_hint(unsafe { hints.get_unchecked(self.i) });
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user