@@ -1509,7 +1509,7 @@ impl<'a, T> ViaNothing for ArgPrinter<'a, T> {
1509
1509
}
1510
1510
}
1511
1511
1512
- // Though it's not entirely correct, we treat usize::max_value() as
1512
+ // Though it's not entirely correct, we treat usize::MAX as
1513
1513
// approximately infinity.
1514
1514
#[ derive( Debug ) ]
1515
1515
#[ doc( hidden) ]
@@ -1518,7 +1518,7 @@ pub struct TimesRange(Range<usize>);
1518
1518
impl Default for TimesRange {
1519
1519
fn default ( ) -> TimesRange {
1520
1520
// By default, allow any number of calls
1521
- TimesRange ( 0 ..usize:: max_value ( ) )
1521
+ TimesRange ( 0 ..usize:: MAX )
1522
1522
}
1523
1523
}
1524
1524
@@ -1537,13 +1537,13 @@ impl From<Range<usize>> for TimesRange {
1537
1537
1538
1538
impl From < RangeFrom < usize > > for TimesRange {
1539
1539
fn from ( r : RangeFrom < usize > ) -> TimesRange {
1540
- TimesRange ( r. start ..usize:: max_value ( ) )
1540
+ TimesRange ( r. start ..usize:: MAX )
1541
1541
}
1542
1542
}
1543
1543
1544
1544
impl From < RangeFull > for TimesRange {
1545
1545
fn from ( _: RangeFull ) -> TimesRange {
1546
- TimesRange ( 0 ..usize:: max_value ( ) )
1546
+ TimesRange ( 0 ..usize:: MAX )
1547
1547
}
1548
1548
}
1549
1549
@@ -1602,7 +1602,7 @@ impl Times {
1602
1602
}
1603
1603
1604
1604
pub fn any ( & mut self ) {
1605
- self . range . 0 = 0 ..usize:: max_value ( ) ;
1605
+ self . range . 0 = 0 ..usize:: MAX ;
1606
1606
}
1607
1607
1608
1608
/// Return how many times this expectation has been called
0 commit comments