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
1 changed files with 1 additions and 0 deletions
|
|
@ -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)?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue