Skip to content

Commit 76d7155

Browse files
committed
chore: appease clippy
Signed-off-by: Patrick Roy <[email protected]>
1 parent a4ad1c9 commit 76d7155

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/address_allocator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ mod tests {
103103
#[test]
104104
fn test_new_fails_overflow() {
105105
assert_eq!(
106-
AddressAllocator::new(u64::max_value(), 0x100).unwrap_err(),
106+
AddressAllocator::new(u64::MAX, 0x100).unwrap_err(),
107107
Error::Overflow
108108
);
109109
}

src/allocation_engine/interval_tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ impl IntervalTree {
615615
}
616616
// If the deleted range did not end at u64::MAX we try to find ranges
617617
// that are placed to its left so we can merge them together.
618-
if range.end() < std::u64::MAX {
618+
if range.end() < u64::MAX {
619619
if let Some(node) = self.search_superset(&RangeInclusive::new(
620620
range.end().checked_add(1).ok_or(Error::Overflow)?,
621621
range.end().checked_add(2).ok_or(Error::Overflow)?,

0 commit comments

Comments
 (0)