mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +00:00
make clippy happy
This commit is contained in:
parent
0f4af4ffd5
commit
2f3bb4d6d5
1 changed files with 2 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue