Use MAX associated const (#9196)

* Use MAX associated const
This commit is contained in:
Squirrel
2021-06-24 11:53:49 +01:00
committed by GitHub
parent 09d9c2c9f6
commit ea1f21a904
56 changed files with 178 additions and 178 deletions
@@ -179,7 +179,7 @@ impl Order {
}
/// A special magic value for a pointer in a link that denotes the end of the linked list.
const NIL_MARKER: u32 = u32::max_value();
const NIL_MARKER: u32 = u32::MAX;
/// A link between headers in the free list.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]