diff options
author | Vika <vika@fireburn.ru> | 2025-01-07 08:45:42 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2025-01-07 08:45:42 +0300 |
commit | 052e47883150e4b10e1a9cc7217f6ae1985864c4 (patch) | |
tree | 73e45d349740b968b450673321305b07689c8b76 | |
parent | 10920ced7c037dc8c65431b7f29c3ca17fcc0ed7 (diff) | |
download | xdg-desktop-portal-systemd-052e47883150e4b10e1a9cc7217f6ae1985864c4.tar.zst |
Fix clippy warnings for now
This is still heavily incomplete, because it doesn't seem to allow to introspect which apps inhibit things, but I don't need that functionality for now. This entire service is a kludge and a dirty hack.
-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!() } } |