mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Fix AArch64 clippy warnings of vmm and other crates
Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
46b8f38987
commit
afc98a5ec9
@@ -401,7 +401,7 @@ impl Vm {
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
vm.enable_split_irq().unwrap();
|
||||
let vm_snapshot = get_vm_snapshot(snapshot).map_err(Error::Restore)?;
|
||||
let config = vm_snapshot.config.clone();
|
||||
let config = vm_snapshot.config;
|
||||
if let Some(state) = vm_snapshot.state {
|
||||
vm.set_state(&state)
|
||||
.map_err(|e| Error::Restore(MigratableError::Restore(e.into())))?;
|
||||
@@ -1576,7 +1576,7 @@ mod tests {
|
||||
&CString::new("console=tty0").unwrap(),
|
||||
vec![0],
|
||||
&dev_info,
|
||||
&gic,
|
||||
&*gic,
|
||||
&None,
|
||||
&None,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user