optimize autocomplete a bit

This commit is contained in:
Simon Gardling 2022-05-17 08:53:30 -04:00
parent f775f64357
commit d2095fb533

View File

@ -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!(),
}