Skip to content

Commit db8840c

Browse files
committed
Update for Option API change
1 parent f516439 commit db8840c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

types/range.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ impl<T: Ord+Normalizable> Range<T> {
242242
match *self {
243243
Empty => false,
244244
Normal(ref lower, ref upper) => {
245-
lower.as_ref().map_default(true, |b| b.in_bounds(value)) &&
246-
upper.as_ref().map_default(true, |b| b.in_bounds(value))
245+
lower.as_ref().map_or(true, |b| b.in_bounds(value)) &&
246+
upper.as_ref().map_or(true, |b| b.in_bounds(value))
247247
}
248248
}
249249
}

0 commit comments

Comments
 (0)