chore(clippy): apply new rust 1.84.0 lints

This commit is contained in:
LGUG2Z
2025-01-09 15:48:41 -08:00
parent c71e61fb1e
commit 996a556984
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ impl Komobar {
Some(widget.komorebi_notification_state.clone());
}
Some(ref previous) => {
if widget.workspaces.map_or(false, |w| w.enable) {
if widget.workspaces.is_some_and(|w| w.enable) {
previous.borrow_mut().update_from_config(
&widget.komorebi_notification_state.borrow(),
);