From 729b9ac5f700f465176006a7e74d5f2ae7b4ec85 Mon Sep 17 00:00:00 2001 From: psykose Date: Sat, 16 Nov 2024 12:51:30 +0100 Subject: [PATCH] clippen --- src/ui/window.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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); }