From a3a1338c28f662199cb9bfcf8e22bf50e5ba5c48 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 31 May 2024 19:08:44 +0200 Subject: [PATCH] fix(web): clippy stop being annoying --- web/src/page/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/page/config.rs b/web/src/page/config.rs index 1b990c3c..1a13f97b 100644 --- a/web/src/page/config.rs +++ b/web/src/page/config.rs @@ -76,10 +76,10 @@ pub fn ConfigPage(setter: WriteSignal) -> impl IntoView { let mut val = event_target_value(&ev); if val.is_empty() { val = DEFAULT_COLOR.to_string() }; let mut mock = config.get(); - mock.accent_color = val.clone(); - setter.set(mock); set_color_rgb.set(parse_hex(&val)); - set_color.set(val); + set_color.set(val.clone()); + mock.accent_color = val; + setter.set(mock); } />