From f5f353803aea15a6f000d5538fe0ee82e220cb94 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Mon, 21 Aug 2023 21:59:19 -0700 Subject: [PATCH] cargo clippy --fix --- dyesub-tool/src/components/keyboardfromfile.rs | 2 +- dyesub-tool/src/components/resultmessage.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dyesub-tool/src/components/keyboardfromfile.rs b/dyesub-tool/src/components/keyboardfromfile.rs index 529f854..8b82839 100644 --- a/dyesub-tool/src/components/keyboardfromfile.rs +++ b/dyesub-tool/src/components/keyboardfromfile.rs @@ -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(); } /> diff --git a/dyesub-tool/src/components/resultmessage.rs b/dyesub-tool/src/components/resultmessage.rs index 8c0fec3..5ce29b3 100644 --- a/dyesub-tool/src/components/resultmessage.rs +++ b/dyesub-tool/src/components/resultmessage.rs @@ -18,7 +18,7 @@ pub fn ResultMessage(cx: Scope, message: ReadSignal>) set_open(true); }); move || view! { cx, - + {move || message().map(|ResultMessageData { title, message, colorway }| view! { cx,
{title}