fixed tests should've been next_back() lol

This commit is contained in:
ripytide
2022-11-27 00:56:07 +00:00
parent a5ce518a53
commit 36f6ecce19
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ impl<T> StartBound<T> {
//when using this as an end value in a range search
pub(crate) fn as_end_bound(self) -> StartBound<T> {
match self {
//flipping is unnecessary
//flipping is unnecessary
StartBound::Included(point) => StartBound::Included(point),
//flip to Reverses
StartBound::Excluded(point) => StartBound::ReverseExcluded(point),
+2 -3
View File
@@ -82,11 +82,10 @@ where
//optimisation fix this without cloning
StartBound::from(
search_range_bounds.start_bound().cloned(),
)
.as_end_bound(),
),
),
))
.next()
.next_back()
{
if possible_missing_range_bounds.overlaps(&search_range_bounds) {
return Either::Left(