summaryrefslogtreecommitdiff
path: root/src/conn_info/mod.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-06-27 00:14:53 +0100
committertcmal <me@aria.rip>2024-06-27 00:14:53 +0100
commit0e0725038dc645e4e0846f9a0de8d0b8a932e03d (patch)
tree9ebeb518f535f29493fd8c77ecf9ab7eaa7cc912 /src/conn_info/mod.rs
parent6d0af908b2ac28cef7b43e3a5624ef5bc96f83b1 (diff)
lints
Diffstat (limited to 'src/conn_info/mod.rs')
-rw-r--r--src/conn_info/mod.rs5
1 files changed, 2 insertions, 3 deletions
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::<u32>()
.iter()
- .find(|a| **a == event.resource_id())
- .is_some();
+ .any(|a| *a == event.resource_id());
if supported {
self.send_request(&SendEvent {