We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f516439 commit db8840cCopy full SHA for db8840c
1 file changed
types/range.rs
@@ -242,8 +242,8 @@ impl<T: Ord+Normalizable> Range<T> {
242
match *self {
243
Empty => false,
244
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))
+ lower.as_ref().map_or(true, |b| b.in_bounds(value)) &&
+ upper.as_ref().map_or(true, |b| b.in_bounds(value))
247
}
248
249
0 commit comments