forked from alemi/upub
fix(web): clippy stop being annoying
This commit is contained in:
parent
f56e808bc6
commit
a3a1338c28
1 changed files with 3 additions and 3 deletions
|
@ -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 />
|
||||||
|
|
Loading…
Reference in a new issue