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:
parent
1d29d61628
commit
f39c4c430e
5 changed files with 43 additions and 50 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue