File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2623,7 +2623,7 @@ pub trait Itertools: Iterator {
2623
2623
Ok ( x)
2624
2624
}
2625
2625
2626
- match inner ( usize:: max_value ( ) , & mut self , & mut f) {
2626
+ match inner ( usize:: MAX , & mut self , & mut f) {
2627
2627
Err ( x) => x,
2628
2628
_ => unreachable ! ( ) ,
2629
2629
}
Original file line number Diff line number Diff line change 58
58
}
59
59
60
60
fn size_hint ( & self ) -> ( usize , Option < usize > ) {
61
- ( usize:: max_value ( ) , None )
61
+ ( usize:: MAX , None )
62
62
}
63
63
}
64
64
@@ -170,7 +170,7 @@ where
170
170
171
171
#[ inline]
172
172
fn size_hint ( & self ) -> ( usize , Option < usize > ) {
173
- ( usize:: max_value ( ) , None )
173
+ ( usize:: MAX , None )
174
174
}
175
175
}
176
176
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ impl qc::Arbitrary for Inexact {
67
67
let ue_value = usize:: arbitrary ( g) ;
68
68
let oe_value = usize:: arbitrary ( g) ;
69
69
// Compensate for quickcheck using extreme values too rarely
70
- let ue_choices = & [ 0 , ue_value, usize:: max_value ( ) ] ;
71
- let oe_choices = & [ 0 , oe_value, usize:: max_value ( ) ] ;
70
+ let ue_choices = & [ 0 , ue_value, usize:: MAX ] ;
71
+ let oe_choices = & [ 0 , oe_value, usize:: MAX ] ;
72
72
Self {
73
73
underestimate : * ue_choices. choose ( g) . unwrap ( ) ,
74
74
overestimate : * oe_choices. choose ( g) . unwrap ( ) ,
You can’t perform that action at this time.
0 commit comments