diff --git a/packages/router-macro/src/lib.rs b/packages/router-macro/src/lib.rs index 5d7bd03e6..b852ba730 100644 --- a/packages/router-macro/src/lib.rs +++ b/packages/router-macro/src/lib.rs @@ -587,7 +587,7 @@ impl RouteEnum { impl<'a> core::convert::TryFrom<&'a str> for #name { type Error = ::Err; - fn try_from(s: &'a str) -> Result { + fn try_from(s: &'a str) -> ::std::result::Result { s.parse() } } @@ -595,7 +595,7 @@ impl RouteEnum { impl std::str::FromStr for #name { type Err = dioxus_router::routable::RouteParseError<#error_name>; - fn from_str(s: &str) -> Result { + fn from_str(s: &str) -> ::std::result::Result { let route = s; let (route, hash) = route.split_once('#').unwrap_or((route, "")); let (route, query) = route.split_once('?').unwrap_or((route, ""));