make clippy happy
This commit is contained in:
1 file changed
+1
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user