1
0
Fork 0
forked from alemi/upub

fix(web): clippy stop being annoying

This commit is contained in:
əlemi 2024-05-31 19:08:44 +02:00
parent f56e808bc6
commit a3a1338c28
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -76,10 +76,10 @@ pub fn ConfigPage(setter: WriteSignal<crate::Config>) -> impl IntoView {
let mut val = event_target_value(&ev); let mut val = event_target_value(&ev);
if val.is_empty() { val = DEFAULT_COLOR.to_string() }; if val.is_empty() { val = DEFAULT_COLOR.to_string() };
let mut mock = config.get(); let mut mock = config.get();
mock.accent_color = val.clone();
setter.set(mock);
set_color_rgb.set(parse_hex(&val)); set_color_rgb.set(parse_hex(&val));
set_color.set(val); set_color.set(val.clone());
mock.accent_color = val;
setter.set(mock);
} /> } />
</p> </p>
<hr /> <hr />