clippy
CI / Lint and Test (pull_request) Failing after 1m31s
CI / Version Check (pull_request) Failing after 3s

This commit is contained in:
2026-04-03 15:01:23 +02:00
parent 16d12e6dce
commit 25ecde96fa
7 changed files with 59 additions and 72 deletions
+5 -6
View File
@@ -89,12 +89,11 @@ impl DndDaemon {
let mut stream = props_proxy.receive_properties_changed().await?;
while let Some(signal) = stream.next().await {
let args = signal.args()?;
if args.interface_name == "org.erikreider.swaync.control" {
if let Some(val) = args.changed_properties.get("dnd") {
if let Ok(is_dnd) = bool::try_from(val) {
let _ = tx.send(DndState { is_dnd });
}
}
if args.interface_name == "org.erikreider.swaync.control"
&& let Some(val) = args.changed_properties.get("dnd")
&& let Ok(is_dnd) = bool::try_from(val)
{
let _ = tx.send(DndState { is_dnd });
}
}
}