generated from ElnuDev/rust-project
cargo clippy --fix
This commit is contained in:
parent
b995846e12
commit
f5f353803a
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ pub fn KeyboardFromFile(
|
||||||
accept="application/json"
|
accept="application/json"
|
||||||
node_ref=file_input
|
node_ref=file_input
|
||||||
on:change=move |_| {
|
on:change=move |_| {
|
||||||
set_file(file_input().unwrap().files().map(|files| files.get(0)).flatten());
|
set_file(file_input().unwrap().files().and_then(|files| files.get(0)));
|
||||||
on_submit();
|
on_submit();
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -18,7 +18,7 @@ pub fn ResultMessage(cx: Scope, message: ReadSignal<Option<ResultMessageData>>)
|
||||||
set_open(true);
|
set_open(true);
|
||||||
});
|
});
|
||||||
move || view! { cx,
|
move || view! { cx,
|
||||||
<Show when=move || open() fallback=|_| ()>
|
<Show when=open fallback=|_| ()>
|
||||||
{move || message().map(|ResultMessageData { title, message, colorway }| view! { cx,
|
{move || message().map(|ResultMessageData { title, message, colorway }| view! { cx,
|
||||||
<div class=class_list!["box", colorway] style="position: relative">
|
<div class=class_list!["box", colorway] style="position: relative">
|
||||||
<strong class="block titlebar">{title}</strong>
|
<strong class="block titlebar">{title}</strong>
|
||||||
|
|
Loading…
Add table
Reference in a new issue