mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +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:
@@ -174,6 +174,7 @@ pub mod kvm {
|
||||
}
|
||||
|
||||
/// 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>> {
|
||||
let vgic_fd = Self::init_device(vm)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user