fixed tests should've been next_back() lol
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user