Fix for upstream changes

This commit is contained in:
Steven Fackler 2014-03-14 20:19:57 -07:00
parent 9af890e7a1
commit 850982c0b0

View File

@ -384,10 +384,10 @@ impl<T: Ord+Normalizable+Clone> Range<T> {
return Range::empty();
}
let OptBound(lower) = cmp::max(OptBound(self.lower()),
OptBound(other.lower()));
let OptBound(upper) = cmp::min(OptBound(self.upper()),
OptBound(other.upper()));
let (_, OptBound(lower)) = order(OptBound(self.lower()),
OptBound(other.lower()));
let (OptBound(upper), _) = order(OptBound(self.upper()),
OptBound(other.upper()));
Range::new(lower.map(|v| v.clone()), upper.map(|v| v.clone()))
}