diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/crates/library/src/sorted_unique_vector.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crates/library/src/sorted_unique_vector.rs b/src/crates/library/src/sorted_unique_vector.rs index cb11ad0..5cb0099 100644 --- a/src/crates/library/src/sorted_unique_vector.rs +++ b/src/crates/library/src/sorted_unique_vector.rs @@ -28,7 +28,7 @@ impl<T: PartialEq + std::cmp::Ord> SortedUniqueVec<T> { } pub fn contains(&self, x: &T) -> bool { - self.v.contains(x) + self.v.binary_search(x).is_ok() } pub fn is_empty(&self) -> bool { |