Skip to content

Commit

Permalink
Merge pull request #234 from hoodie/renovate/zbus-5.x
Browse files Browse the repository at this point in the history
fix(deps): update rust crate zbus to v5
  • Loading branch information
hoodie authored Jan 12, 2025
2 parents cc02ba1 + a7e3612 commit 1d24dfe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
1 change: 0 additions & 1 deletion src/notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ impl Notification {
/// According to [specification](https://developer.gnome.org/notification-spec/)
/// -1 will leave the timeout to be set by the server and
/// 0 will cause the notification never to expire.
/// ## [Duration](`std::time::Duration`)
///
/// When passing a [`Duration`](`std::time::Duration`) we will try convert it into milliseconds.
Expand Down
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 1d24dfe

Please sign in to comment.