mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
[deps] Platform: Update zbus to v5 (major) (#12312)
* [deps] Platform: Update zbus to v5 * adjust for api changes --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: addisonbeck <github@addisonbeck.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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<dyn st
|
||||
let proxy = zbus::fdo::DBusProxy::new(&connection).await?;
|
||||
for monitor in SCREEN_LOCK_MONITORS.iter() {
|
||||
let match_rule = MatchRule::builder()
|
||||
.msg_type(zbus::MessageType::Signal)
|
||||
.msg_type(zbus::message::Type::Signal)
|
||||
.interface(monitor.interface.clone())?
|
||||
.member("ActiveChanged")?
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user