diff --git a/src/ui/window.rs b/src/ui/window.rs index 129c8b4..bda5881 100644 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -448,10 +448,7 @@ mod imp { } fn idle_active(&self) -> bool { - match self.state.get() { - State::Idle => true, - _ => false, - } + matches!(self.state.get(), State::Idle) } fn playlist_count(&self) -> i64 { @@ -714,7 +711,7 @@ mod imp { { css.push_str(&format!("--background-color-{i}: {color}; ")); } - css.push_str("}"); + css.push('}'); window.imp().css_provider.load_from_string(&css); }