make clippy happy

This commit is contained in:
Adrian Wannenmacher 2023-04-12 19:48:27 +02:00
parent 0f4af4ffd5
commit 2f3bb4d6d5
No known key found for this signature in database
GPG key ID: 19D986ECB1E492D5

View file

@ -185,11 +185,9 @@ 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 {
if do_default && is_router_nav {
let _ = sender.unbounded_send(RouterMessage::Push(target.clone()));
}
}
if let Some(handler) = onclick {
handler.call(event);