vmm: Fix AArch64 clippy warnings of vmm and other crates

Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
Michael Zhao
2020-08-23 15:45:44 +08:00
committed by Sebastien Boeuf
parent 46b8f38987
commit afc98a5ec9
7 changed files with 9 additions and 11 deletions

View File

@@ -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,
)