1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 14:51:04 +02:00

refactor: fix clippy warnings

This commit is contained in:
Jake Stanger 2025-02-15 23:18:57 +00:00
parent 1d29d61628
commit f39c4c430e
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
5 changed files with 43 additions and 50 deletions

View file

@ -336,7 +336,7 @@ impl Environment {
let handle = env
.handles
.iter()
.find(|handle| handle.info().map_or(false, |info| info.id == id));
.find(|handle| handle.info().is_some_and(|info| info.id == id));
if let Some(handle) = handle {
let seat = env.default_seat();
@ -350,7 +350,7 @@ impl Environment {
let handle = env
.handles
.iter()
.find(|handle| handle.info().map_or(false, |info| info.id == id));
.find(|handle| handle.info().is_some_and(|info| info.id == id));
if let Some(handle) = handle {
handle.minimize();