diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index 51dd23a..f6a8a76 100644 --- a/src/main.rs +++ b/src/main.rs @@ -48,7 +48,7 @@ struct State { } struct Request { - app_id: String, + _app_id: String, path: zvariant::OwnedObjectPath, inhibitor: Option<zvariant::OwnedFd>, } @@ -69,7 +69,7 @@ impl Request { } struct Session { - app_id: String, + _app_id: String, path: zvariant::OwnedObjectPath, } #[zbus::interface(name = "org.freedesktop.impl.portal.Session")] @@ -139,7 +139,7 @@ impl InhibitService { .at( handle.clone(), Request { - app_id: app_id.to_owned(), + _app_id: app_id.to_owned(), inhibitor: Some( self.logind .inhibit( @@ -170,7 +170,7 @@ impl InhibitService { #[zbus(object_server)] object_server: &zbus::ObjectServer, ) -> zbus::fdo::Result<u32> { let session = Session { - app_id: app_id.to_owned(), + _app_id: app_id.to_owned(), path: session_handle.clone().into_owned().into(), }; object_server.at(&session_handle, session).await?; @@ -191,7 +191,7 @@ impl InhibitService { /// within one second of receiving a /// [`state_changed`][Inhibit::state_changed] signal with /// [`State::QueryEnd`]. - async fn query_end_response(&self, session_handle: zvariant::ObjectPath<'_>) { + async fn query_end_response(&self, _session_handle: zvariant::ObjectPath<'_>) { todo!() } } |