mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
make clippy happy
This commit is contained in:
parent
0f4af4ffd5
commit
2f3bb4d6d5
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue