Update for Option API change

This commit is contained in:
Steven Fackler 2014-01-08 21:48:55 -08:00
parent f516439cf2
commit db8840cd1c

View File

@ -242,8 +242,8 @@ impl<T: Ord+Normalizable> Range<T> {
match *self {
Empty => false,
Normal(ref lower, ref upper) => {
lower.as_ref().map_default(true, |b| b.in_bounds(value)) &&
upper.as_ref().map_default(true, |b| b.in_bounds(value))
lower.as_ref().map_or(true, |b| b.in_bounds(value)) &&
upper.as_ref().map_or(true, |b| b.in_bounds(value))
}
}
}