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
@@ -342,7 +342,7 @@ impl vm::Vm for KvmVm {
|
||||
///
|
||||
/// Set the VM state
|
||||
///
|
||||
fn set_state(&self, _state: &VmState) -> vm::Result<()> {
|
||||
fn set_state(&self, _state: VmState) -> vm::Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -183,5 +183,5 @@ pub trait Vm: Send + Sync {
|
||||
/// Get the Vm state. Return VM specific data
|
||||
fn state(&self) -> Result<VmState>;
|
||||
/// Set the VM state
|
||||
fn set_state(&self, state: &VmState) -> Result<()>;
|
||||
fn set_state(&self, state: VmState) -> Result<()>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user