mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 11:25:20 +00:00
ch-remote: dbus: Remove unnecessary mut from reference
warning: this argument is a mutable reference, but not used mutably --> src/bin/ch-remote.rs:397:52 | 397 | fn dbus_api_do_command(toplevel: &TopLevel, proxy: &mut DBusApi1ProxyBlocking<'_>) -> ApiResult { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing to: `&DBusApi1ProxyBlocking<'_>` | = note: this is cfg-gated and may require further changes = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut = note: `#[warn(clippy::needless_pass_by_ref_mut)]` on by default Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
parent
0bead9ebe1
commit
1dd1850747
@ -394,7 +394,7 @@ fn rest_api_do_command(toplevel: &TopLevel, socket: &mut UnixStream) -> ApiResul
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "dbus_api")]
|
#[cfg(feature = "dbus_api")]
|
||||||
fn dbus_api_do_command(toplevel: &TopLevel, proxy: &mut DBusApi1ProxyBlocking<'_>) -> ApiResult {
|
fn dbus_api_do_command(toplevel: &TopLevel, proxy: &DBusApi1ProxyBlocking<'_>) -> ApiResult {
|
||||||
match toplevel.command {
|
match toplevel.command {
|
||||||
SubCommandEnum::Boot(_) => proxy.api_vm_boot(),
|
SubCommandEnum::Boot(_) => proxy.api_vm_boot(),
|
||||||
SubCommandEnum::Delete(_) => proxy.api_vm_delete(),
|
SubCommandEnum::Delete(_) => proxy.api_vm_delete(),
|
||||||
|
Loading…
Reference in New Issue
Block a user