From ad9d681d0a598622962375c3a26fb9f6021f4009 Mon Sep 17 00:00:00 2001 From: realbigsean Date: Thu, 13 Jun 2024 17:46:47 -0400 Subject: [PATCH] a couple more max_value -> MAX --- consensus/types/src/slot_epoch_macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/types/src/slot_epoch_macros.rs b/consensus/types/src/slot_epoch_macros.rs index ec7f3e001c..00e1af3918 100644 --- a/consensus/types/src/slot_epoch_macros.rs +++ b/consensus/types/src/slot_epoch_macros.rs @@ -371,14 +371,14 @@ macro_rules! from_into_tests { let x: $other = $type(u64::MAX).into(); // Note: this will fail on 32 bit systems. This is expected as we don't have a proper // 32-bit system strategy in place. - assert_eq!(x, $other::max_value()); + assert_eq!(x, $other::MAX); } #[test] fn from() { assert_eq!($type(0), $type::from(0_u64)); assert_eq!($type(3), $type::from(3_u64)); - assert_eq!($type(u64::MAX), $type::from($other::max_value())); + assert_eq!($type(u64::MAX), $type::from($other::MAX)); } }; }