From 0e0725038dc645e4e0846f9a0de8d0b8a932e03d Mon Sep 17 00:00:00 2001 From: tcmal Date: Thu, 27 Jun 2024 00:14:53 +0100 Subject: lints --- src/conn_info/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/conn_info/mod.rs') diff --git a/src/conn_info/mod.rs b/src/conn_info/mod.rs index ce7934b..ac257d4 100644 --- a/src/conn_info/mod.rs +++ b/src/conn_info/mod.rs @@ -186,7 +186,7 @@ impl<'a> Connection<'a> { property: self.atoms.wm_protocols, r#type: x::ATOM_ATOM, long_offset: 0, - long_length: 100000, + long_length: 100_000, })) else { return; }; @@ -198,8 +198,7 @@ impl<'a> Connection<'a> { let supported = protocols .value::() .iter() - .find(|a| **a == event.resource_id()) - .is_some(); + .any(|a| *a == event.resource_id()); if supported { self.send_request(&SendEvent { -- cgit v1.2.3