Skip to content

Commit

Permalink
refactor: adapt to new message type name
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodie committed Oct 20, 2024
1 parent 58211db commit 34aa9d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/xdg/zbus_rs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand All @@ -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)>() {
Expand Down

0 comments on commit 34aa9d8

Please sign in to comment.