diff --git a/tests/basic-proto/src/int_type.rs b/tests/basic-proto/src/int_type.rs index 8897d08..b009250 100644 --- a/tests/basic-proto/src/int_type.rs +++ b/tests/basic-proto/src/int_type.rs @@ -55,7 +55,7 @@ fn encode() { basic.set_int32_num(-1); assert_eq!(basic.compute_size(), 11); // Regardless of the int type, fixed numbers have fixed size - basic.set_sfixed32_num(i64::min_value()); + basic.set_sfixed32_num(i64::MIN); assert_eq!(basic.compute_size(), 16); let mut encoder = PbEncoder::new(vec![]); diff --git a/tests/basic-proto/src/no_config.rs b/tests/basic-proto/src/no_config.rs index 708b0bb..b47f1f7 100644 --- a/tests/basic-proto/src/no_config.rs +++ b/tests/basic-proto/src/no_config.rs @@ -151,7 +151,7 @@ fn decode_varint() { ); let len = decoder.as_reader().len(); basic.decode(&mut decoder, len).unwrap(); - assert_eq!(basic.int64_num(), Some(&i64::min_value())); + assert_eq!(basic.int64_num(), Some(&i64::MIN)); let mut decoder = PbDecoder::new( [ @@ -163,7 +163,7 @@ fn decode_varint() { let len = decoder.as_reader().len(); basic.decode(&mut decoder, len).unwrap(); assert_eq!(basic.uint32_num(), Some(&150)); - assert_eq!(basic.uint64_num(), Some(&u64::max_value())); + assert_eq!(basic.uint64_num(), Some(&u64::MAX)); let mut decoder = PbDecoder::new( [