From 4b74ad12d636e2d153a0dfdb91503c817e558e84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Volf?= Date: Thu, 5 Sep 2024 20:19:33 +0200 Subject: [PATCH] style: ignore a redundant closure warning --- src/components/bottom_panel.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/bottom_panel.rs b/src/components/bottom_panel.rs index 9dc512b..2b78b51 100644 --- a/src/components/bottom_panel.rs +++ b/src/components/bottom_panel.rs @@ -6,6 +6,7 @@ use crate::route::Route; #[component] pub(crate) fn BottomPanel(display_form: Signal) -> Element { + #[allow(clippy::redundant_closure)] let mut expanded = use_signal(|| display_form()); let navigation_expanded = use_signal(|| false); let current_route = use_route(); @@ -46,7 +47,7 @@ pub(crate) fn BottomPanel(display_form: Signal) -> Element { on_successful_submit: move |_| { display_form.set(false); } - } + } } } } else {