mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 03:15:20 +00:00
arch: aarch64: Fix rust 1.48 clippy warnings
methods called `new` usually return `Self` See https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
72bb255ff6
commit
ef4c896bbf
@ -174,6 +174,7 @@ pub mod kvm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Method to initialize the GIC device
|
/// Method to initialize the GIC device
|
||||||
|
#[allow(clippy::new_ret_no_self)]
|
||||||
fn new(vm: &Arc<dyn hypervisor::Vm>, vcpu_count: u64) -> Result<Box<dyn GICDevice>> {
|
fn new(vm: &Arc<dyn hypervisor::Vm>, vcpu_count: u64) -> Result<Box<dyn GICDevice>> {
|
||||||
let vgic_fd = Self::init_device(vm)?;
|
let vgic_fd = Self::init_device(vm)?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user