fix clippy
This commit is contained in:
1 parent
cc94711d62
commit
d2ec27e761
4 files changed
+7
-10
No files matched your search
@@ -49,11 +49,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
fn default_external_navigation_handler<R>() -> fn(Scope) -> Element
|
||||
where
|
||||
R: dioxus_router::prelude::Routable,
|
||||
<R as std::str::FromStr>::Err: std::fmt::Display,
|
||||
{
|
||||
fn default_external_navigation_handler() -> fn(Scope) -> Element {
|
||||
dioxus_router::prelude::FailureExternalNavigation
|
||||
}
|
||||
|
||||
@@ -65,7 +61,7 @@ where
|
||||
<R as std::str::FromStr>::Err: std::fmt::Display,
|
||||
{
|
||||
#[serde(skip)]
|
||||
#[serde(default = "default_external_navigation_handler::<R>")]
|
||||
#[serde(default = "default_external_navigation_handler")]
|
||||
failure_external_navigation: fn(Scope) -> Element,
|
||||
scroll_restoration: bool,
|
||||
#[serde(skip)]
|
||||
|
||||
Reference in new issue
Block a user