diff --git a/Cargo.toml b/Cargo.toml index d239c944..d7bd153a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ include = [ dbus = { version = "0.9", optional = true } lazy_static = { version = "1.5", optional = true } image = { version = "0.25", optional = true } -zbus = { version = "4", optional = true } +zbus = { version = "5", optional = true } serde = { version = "1", optional = true } log = "0.4" env_logger ={ version ="0.11", optional = true } diff --git a/src/xdg/zbus_rs.rs b/src/xdg/zbus_rs.rs index 4e244f85..34a313d7 100644 --- a/src/xdg/zbus_rs.rs +++ b/src/xdg/zbus_rs.rs @@ -237,7 +237,7 @@ async fn wait_for_action_signal( handler: impl ActionResponseHandler, ) { let action_signal_rule = MatchRule::builder() - .msg_type(zbus::MessageType::Signal) + .msg_type(zbus::message::Type::Signal) .interface(xdg::NOTIFICATION_INTERFACE) .unwrap() .member("ActionInvoked") @@ -248,7 +248,7 @@ async fn wait_for_action_signal( proxy.add_match_rule(action_signal_rule).await.unwrap(); let close_signal_rule = MatchRule::builder() - .msg_type(zbus::MessageType::Signal) + .msg_type(zbus::message::Type::Signal) .interface(xdg::NOTIFICATION_INTERFACE) .unwrap() .member("NotificationClosed") @@ -258,7 +258,7 @@ async fn wait_for_action_signal( while let Ok(Some(msg)) = zbus::MessageStream::from(connection).try_next().await { let header = msg.header(); - if let zbus::MessageType::Signal = header.message_type() { + if let zbus::message::Type::Signal = header.message_type() { match header.member() { Some(name) if name == "ActionInvoked" => { match msg.body().deserialize::<(u32, String)>() {