@@ -104,11 +104,11 @@ macro_rules! bounded_normalizable(
104104 -> RangeBound <S , $t> {
105105 match ( BoundSided :: side( None :: <S >) , bound. type_) {
106106 ( Upper , Inclusive ) => {
107- assert!( bound. value != $t:: max_value ) ;
107+ assert!( bound. value != $t:: MAX ) ;
108108 RangeBound :: new( bound. value + 1 , Exclusive )
109109 }
110110 ( Lower , Exclusive ) => {
111- assert!( bound. value != $t:: max_value ) ;
111+ assert!( bound. value != $t:: MAX ) ;
112112 RangeBound :: new( bound. value + 1 , Inclusive )
113113 }
114114 _ => bound
@@ -411,17 +411,17 @@ mod test {
411411 let r = range ! ( '(' , 3i32 ']' ) ;
412412 assert ! ( !r. contains( & 4 ) ) ;
413413 assert ! ( r. contains( & 2 ) ) ;
414- assert ! ( r. contains( & i32 :: min_value ) ) ;
414+ assert ! ( r. contains( & i32 :: MIN ) ) ;
415415
416416 let r = range ! ( '[' 1i32 , ')' ) ;
417- assert ! ( r. contains( & i32 :: max_value ) ) ;
417+ assert ! ( r. contains( & i32 :: MAX ) ) ;
418418 assert ! ( r. contains( & 4 ) ) ;
419419 assert ! ( !r. contains( & 0 ) ) ;
420420
421421 let r = range ! ( '(' , ')' ) ;
422- assert ! ( r. contains( & i32 :: max_value ) ) ;
422+ assert ! ( r. contains( & i32 :: MAX ) ) ;
423423 assert ! ( r. contains( & 0i32 ) ) ;
424- assert ! ( r. contains( & i32 :: min_value ) ) ;
424+ assert ! ( r. contains( & i32 :: MIN ) ) ;
425425 }
426426
427427 #[ test]
0 commit comments