cargo clippy --fix

main
Elnu 1 year ago
parent b995846e12
commit f5f353803a

@ -50,7 +50,7 @@ pub fn KeyboardFromFile(
accept="application/json"
node_ref=file_input
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();
}
/>

@ -18,7 +18,7 @@ pub fn ResultMessage(cx: Scope, message: ReadSignal<Option<ResultMessageData>>)
set_open(true);
});
move || view! { cx,
<Show when=move || open() fallback=|_| ()>
<Show when=open fallback=|_| ()>
{move || message().map(|ResultMessageData { title, message, colorway }| view! { cx,
<div class=class_list!["box", colorway] style="position: relative">
<strong class="block titlebar">{title}</strong>

Loading…
Cancel
Save