mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
block, pci, rate_limiter, vm-allocator: drop legacy numeric constants
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user