Update all dependencies
This commit is contained in:
@ -95,5 +95,5 @@ async fn register_sleep_lock<'a>(manager_proxy: &ManagerProxy<'a>) -> anyhow::Re
|
||||
// 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