make clippy happy
This commit is contained in:
1 file changed
+2
-4
@@ -185,10 +185,8 @@ pub fn Link<'a>(cx: Scope<'a, LinkProps<'a>>) -> Element {
|
|||||||
|
|
||||||
let do_default = onclick.is_none() || !onclick_only;
|
let do_default = onclick.is_none() || !onclick_only;
|
||||||
let action = move |event| {
|
let action = move |event| {
|
||||||
if do_default {
|
if do_default && is_router_nav {
|
||||||
if is_router_nav {
|
let _ = sender.unbounded_send(RouterMessage::Push(target.clone()));
|
||||||
let _ = sender.unbounded_send(RouterMessage::Push(target.clone()));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(handler) = onclick {
|
if let Some(handler) = onclick {
|
||||||
|
|||||||
Reference in new issue
Block a user