mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-05 21:15:45 +00:00
vm-allicator: Remove "new_without_default" clippy
Add a Default implementation that delegates to new, so that clippy can be removed. Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com>
This commit is contained in:
parent
c0af33a4c9
commit
99a98f270d
@ -63,7 +63,6 @@ impl GsiAllocator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_arch = "aarch64")]
|
#[cfg(target_arch = "aarch64")]
|
||||||
#[allow(clippy::new_without_default)]
|
|
||||||
/// New GSI allocator
|
/// New GSI allocator
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
GsiAllocator {
|
GsiAllocator {
|
||||||
@ -106,3 +105,10 @@ impl GsiAllocator {
|
|||||||
Ok(irq)
|
Ok(irq)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(target_arch = "aarch64")]
|
||||||
|
impl Default for GsiAllocator {
|
||||||
|
fn default() -> Self {
|
||||||
|
GsiAllocator::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user