vmm: ch-remote: replace deprecated zbus macros with new equivalents

Fixes deprecation related warnings introduced in #6400.

Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr>
This commit is contained in:
Omer Faruk Bayram
2024-05-22 21:41:43 +03:00
committed by Rob Bradford
parent 5a811af099
commit 036e7e3797
2 changed files with 6 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ use std::marker::PhantomData;
use std::os::unix::net::UnixStream;
use std::process;
#[cfg(feature = "dbus_api")]
use zbus::{dbus_proxy, zvariant::Optional};
use zbus::{proxy, zvariant::Optional};
type ApiResult = Result<(), Error>;
@@ -72,7 +72,7 @@ enum TargetApi<'a> {
}
#[cfg(feature = "dbus_api")]
#[dbus_proxy(name = "org.cloudhypervisor.DBusApi1", assume_defaults = false)]
#[proxy(name = "org.cloudhypervisor.DBusApi1", assume_defaults = false)]
trait DBusApi1 {
fn vmm_ping(&self) -> zbus::Result<String>;
fn vmm_shutdown(&self) -> zbus::Result<()>;