Skip to content

Commit

Permalink
switched out legacy max_value() for MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
djugei committed Sep 13, 2024
1 parent c37fa99 commit db6261a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct RingBuf<const SIZE: usize = 10> {

impl<const SIZE: usize> RingBuf<SIZE> {
fn new() -> Self {
assert!(SIZE <= u8::max_value().into());
assert!(SIZE <= u8::MAX.into());
assert!(SIZE > 0);
Self {
vals: [0; SIZE],
Expand Down

0 comments on commit db6261a

Please sign in to comment.