Update all dependencies
This commit is contained in:
@ -5,13 +5,13 @@ edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
async-std = { version = "1.11", features = ["attributes"] }
|
||||
async-std = { version = "1.12", features = ["attributes"] }
|
||||
async-xcb = { path = "../async-xcb" }
|
||||
bscreensaver-command = { path = "../command" }
|
||||
bscreensaver-util = { path = "../util" }
|
||||
futures = "0.3"
|
||||
log = "0.4"
|
||||
nix = "0.23"
|
||||
nix = "0.29"
|
||||
xcb = "1"
|
||||
zbus = "3"
|
||||
logind-zbus = "3"
|
||||
zbus = "4"
|
||||
logind-zbus = "^4.0.1"
|
||||
|
@ -92,8 +92,5 @@ async fn do_bscreensaver_command(command: BCommand) -> anyhow::Result<()> {
|
||||
|
||||
async fn register_sleep_lock<'a>(manager_proxy: &ManagerProxy<'a>) -> anyhow::Result<zbus::zvariant::OwnedFd> {
|
||||
debug!("Registering sleep lock");
|
||||
// ManagerProxy uses RawFd for the return value, which rust's type system thinks is an i32,
|
||||
// which means the generated proxy uses the wrong dbus type signature. So instead, use a raw
|
||||
// Proxy instance and do it all ourselves.
|
||||
Ok((*manager_proxy).call("Inhibit", &(InhibitType::Sleep, "bscreensaver", "blank before sleep", "delay")).await?)
|
||||
Ok(manager_proxy.inhibit(InhibitType::Sleep, "bscreensaver", "blank before sleep", "delay").await?)
|
||||
}
|
||||
|
Reference in New Issue
Block a user