From 4f63e13385cae5c2b6abdc931e7daf84fa62661d Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 16 May 2025 22:21:02 +0300 Subject: Deal with new Clippy warnings --- src/input/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input/mod.rs') diff --git a/src/input/mod.rs b/src/input/mod.rs index 35343288..e50d5d75 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -4367,7 +4367,7 @@ pub fn apply_libinput_settings(config: &niri_config::Input, device: &mut input:: pub fn mods_with_binds(mod_key: ModKey, binds: &Binds, triggers: &[Trigger]) -> HashSet { let mut rv = HashSet::new(); for bind in &binds.0 { - if !triggers.iter().any(|trigger| bind.key.trigger == *trigger) { + if !triggers.contains(&bind.key.trigger) { continue; } -- cgit