stuff
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use std::{hint::unreachable_unchecked, intrinsics::assume};
|
||||
use std::hint::unreachable_unchecked;
|
||||
|
||||
use crate::{generate_hint, Hint, HINT_EMPTY};
|
||||
|
||||
@@ -70,12 +70,6 @@ impl<'a> AutoComplete<'a> {
|
||||
// Impossible for plural hints to be singular or non-existant
|
||||
debug_assert!(hints.len() > 1); // check on debug
|
||||
|
||||
// Hint to the compiler
|
||||
unsafe {
|
||||
assume(hints.len() > 1);
|
||||
assume(!hints.is_empty());
|
||||
}
|
||||
|
||||
match movement {
|
||||
Movement::Up => {
|
||||
// Wrap self.i to maximum `i` value if needed
|
||||
|
||||
Reference in New Issue
Block a user