mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
refactor: fix new strict clippy warnings
This commit is contained in:
parent
d58d8952a8
commit
aaef3bf96c
8 changed files with 24 additions and 29 deletions
|
@ -60,7 +60,7 @@ impl DynamicBool {
|
|||
let mut rx = crate::write_lock!(variable_manager).subscribe(variable_name);
|
||||
|
||||
while let Ok(value) = rx.recv().await {
|
||||
let has_value = value.map(|s| is_truthy(&s)).unwrap_or_default();
|
||||
let has_value = value.is_some_and(|s| is_truthy(&s));
|
||||
send_async!(tx, has_value);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue