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],