We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9af890e commit 850982cCopy full SHA for 850982c
src/types/range.rs
@@ -384,10 +384,10 @@ impl<T: Ord+Normalizable+Clone> Range<T> {
384
return Range::empty();
385
}
386
387
- let OptBound(lower) = cmp::max(OptBound(self.lower()),
388
- OptBound(other.lower()));
389
- let OptBound(upper) = cmp::min(OptBound(self.upper()),
390
- OptBound(other.upper()));
+ let (_, OptBound(lower)) = order(OptBound(self.lower()),
+ OptBound(other.lower()));
+ let (OptBound(upper), _) = order(OptBound(self.upper()),
+ OptBound(other.upper()));
391
392
Range::new(lower.map(|v| v.clone()), upper.map(|v| v.clone()))
393
0 commit comments