block, pci, rate_limiter, vm-allocator: drop legacy numeric constants

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2024-04-29 03:47:15 +00:00
committed by Rob Bradford
parent 0816c8292f
commit f6cd3bd86d
7 changed files with 12 additions and 16 deletions

View File

@@ -219,10 +219,7 @@ mod tests {
#[test]
fn new_fails_overflow() {
assert_eq!(
AddressAllocator::new(GuestAddress(u64::max_value()), 0x100),
None
);
assert_eq!(AddressAllocator::new(GuestAddress(u64::MAX), 0x100), None);
}
#[test]