diff --git a/vm-allocator/src/gsi.rs b/vm-allocator/src/gsi.rs index ed01bbfd4..19dec1776 100644 --- a/vm-allocator/src/gsi.rs +++ b/vm-allocator/src/gsi.rs @@ -63,7 +63,6 @@ impl GsiAllocator { } #[cfg(target_arch = "aarch64")] - #[allow(clippy::new_without_default)] /// New GSI allocator pub fn new() -> Self { GsiAllocator { @@ -106,3 +105,10 @@ impl GsiAllocator { Ok(irq) } } + +#[cfg(target_arch = "aarch64")] +impl Default for GsiAllocator { + fn default() -> Self { + GsiAllocator::new() + } +}