aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/crates/library/src/sorted_unique_vector.rs2
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 {