From db6261ab2291159ea444044d1236b80475117fbb Mon Sep 17 00:00:00 2001 From: djugei Date: Fri, 13 Sep 2024 18:04:36 +0200 Subject: [PATCH] switched out legacy max_value() for MAX --- src/iter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iter.rs b/src/iter.rs index 494e2edd..a29c630b 100644 --- a/src/iter.rs +++ b/src/iter.rs @@ -67,7 +67,7 @@ struct RingBuf { impl RingBuf { fn new() -> Self { - assert!(SIZE <= u8::max_value().into()); + assert!(SIZE <= u8::MAX.into()); assert!(SIZE > 0); Self { vals: [0; SIZE],