diff --git a/apps/desktop/desktop_native/Cargo.toml b/apps/desktop/desktop_native/Cargo.toml index fa1b0544641..451704f91fe 100644 --- a/apps/desktop/desktop_native/Cargo.toml +++ b/apps/desktop/desktop_native/Cargo.toml @@ -62,6 +62,6 @@ windows = "=0.61.1" windows-core = "=0.61.0" windows-future = "=0.2.0" windows-registry = "=0.5.1" -zbus = "=4.4.0" -zbus_polkit = "=4.0.0" +zbus = "=5.5.0" +zbus_polkit = "=5.0.0" zeroizing-alloc = "=0.1.0" diff --git a/apps/desktop/desktop_native/core/src/powermonitor/linux.rs b/apps/desktop/desktop_native/core/src/powermonitor/linux.rs index 7d0fde15ed4..aa93037e95f 100644 --- a/apps/desktop/desktop_native/core/src/powermonitor/linux.rs +++ b/apps/desktop/desktop_native/core/src/powermonitor/linux.rs @@ -1,6 +1,8 @@ use std::borrow::Cow; -use zbus::{export::futures_util::TryStreamExt, Connection, MatchRule}; +use futures::TryStreamExt; +use zbus::{Connection, MatchRule}; + struct ScreenLock { interface: Cow<'static, str>, path: Cow<'static, str>, @@ -23,7 +25,7 @@ pub async fn on_lock(tx: tokio::sync::mpsc::Sender<()>) -> Result<(), Box