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:
parent
a692a3006a
commit
8b6cd49f4c
3 changed files with 80 additions and 84 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue