fix clippy

This commit is contained in:
Evan Almloff committed 2023-07-26 11:29:34 -07:00
1 parent cc94711d62
commit d2ec27e761
4 files changed
+7 -10

No files matched your search

+2 -6
View File
@@ -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)]