mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
hypervisor, vmm: fix clippy warnings
Signed-off-by: Praveen Paladugu <prapal@microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
6ebeaa9246
commit
4b32252028
@@ -537,7 +537,7 @@ impl Vm {
|
||||
let vm_snapshot = get_vm_snapshot(snapshot).map_err(Error::Restore)?;
|
||||
let config = vm_snapshot.config;
|
||||
if let Some(state) = vm_snapshot.state {
|
||||
vm.set_state(&state)
|
||||
vm.set_state(state)
|
||||
.map_err(|e| Error::Restore(MigratableError::Restore(e.into())))?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user