@@ -182,9 +182,9 @@ macro_rules! impl_fromresp_integers {
182182 i64 :: from_resp_int( resp) . and_then( |x| {
183183 // $int_ty::max_value() as i64 > 0 should be optimized out. It tests if
184184 // the target integer type needs an "upper bounds" check
185- if x < ( $int_ty:: min_value ( ) as i64 )
186- || ( $int_ty:: max_value ( ) as i64 > 0
187- && x > ( $int_ty:: max_value ( ) as i64 ) )
185+ if x < ( $int_ty:: MIN as i64 )
186+ || ( $int_ty:: MAX as i64 > 0
187+ && x > ( $int_ty:: MAX as i64 ) )
188188 {
189189 Err ( error:: resp(
190190 concat!(
@@ -424,23 +424,23 @@ impl IntoRespString for String {
424424}
425425string_into_resp ! ( String ) ;
426426
427- impl < ' a > IntoRespString for & ' a String {
427+ impl IntoRespString for & String {
428428 #[ inline]
429429 fn into_resp_string ( self ) -> RespValue {
430430 RespValue :: BulkString ( self . as_bytes ( ) . into ( ) )
431431 }
432432}
433433string_into_resp ! ( & ' a String ) ;
434434
435- impl < ' a > IntoRespString for & ' a str {
435+ impl IntoRespString for & str {
436436 #[ inline]
437437 fn into_resp_string ( self ) -> RespValue {
438438 RespValue :: BulkString ( self . as_bytes ( ) . into ( ) )
439439 }
440440}
441441string_into_resp ! ( & ' a str ) ;
442442
443- impl < ' a > IntoRespString for & ' a [ u8 ] {
443+ impl IntoRespString for & [ u8 ] {
444444 #[ inline]
445445 fn into_resp_string ( self ) -> RespValue {
446446 RespValue :: BulkString ( self . to_vec ( ) )
@@ -814,7 +814,7 @@ mod tests {
814814
815815 #[ test]
816816 fn test_integer_overflow ( ) {
817- let resp_object = RespValue :: Integer ( i64:: max_value ( ) ) ;
817+ let resp_object = RespValue :: Integer ( i64:: MAX ) ;
818818 let res = i32:: from_resp ( resp_object) ;
819819 assert ! ( res. is_err( ) ) ;
820820 }
0 commit comments