Fix building without systemd + minor clippy

Some of the feature gates were out of date for builds precluding
systemd, logind, or both. I also cleaned up the systemd/logind gates in
general as well as fixed a few very minor clippy lints.
This commit is contained in:
Josh Megnauth 2026-09-17 21:39:23 -04:00 • committed by Jacob Kauffmann
parent a692a3006a
commit 8b6cd49f4c
3 changed files with 80 additions and 84 deletions

View file

@ -46,6 +46,6 @@ logind-zbus = { version = "5.3.2", optional = true }
[features]
systemd = ["dep:zbus_systemd", "dep:tracing-journald"]
logind = ["systemd", "logind-zbus"]
default = ["logind"]
logind = ["dep:logind-zbus"]
default = ["logind", "systemd"]
autostart = ["dep:shell-words", "dep:dirs", "dep:freedesktop-desktop-entry"]