make clippy happy

This commit is contained in:
Adrian Wannenmacher committed 2023-04-12 19:48:27 +02:00
1 parent 0f4af4ffd5
commit 2f3bb4d6d5
1 file changed
+2 -4
+2 -4
View File
@@ -185,10 +185,8 @@ pub fn Link<'a>(cx: Scope<'a, LinkProps<'a>>) -> Element {
let do_default = onclick.is_none() || !onclick_only;
let action = move |event| {
if do_default {
if is_router_nav {
let _ = sender.unbounded_send(RouterMessage::Push(target.clone()));
}
if do_default && is_router_nav {
let _ = sender.unbounded_send(RouterMessage::Push(target.clone()));
}
if let Some(handler) = onclick {