chore: clippy

This commit is contained in:
Vukašin Vojinović 2026-02-23 16:25:06 +01:00 committed by Victoria Brekenfeld
parent c13e52da04
commit 2ca99c670a
59 changed files with 1974 additions and 2137 deletions

View file

@ -19,7 +19,7 @@ use zbus::{
use super::name_owners::NameOwners;
static ALLOWED_NAMES: &'static [WellKnownName] = &[WellKnownName::from_static_str_unchecked(
static ALLOWED_NAMES: &[WellKnownName] = &[WellKnownName::from_static_str_unchecked(
"org.gnome.Orca.KeyboardMonitor",
)];

View file

@ -156,7 +156,7 @@ impl NameOwners {
} else {
allowed_names
.iter()
.any(|n| inner.name_owners.get(n).map(|x| x.as_ref()).flatten() == Some(name))
.any(|n| inner.name_owners.get(n).and_then(|x| x.as_ref()) == Some(name))
}
}