Use the absolute path for result in the macro (#3017)

This commit is contained in:
Evan Almloff authored and GitHub committed 2024-10-01 10:26:55 -05:00
1 parent f9c2f740c2
commit 5925f3c8ee
1 file changed
+2 -2
+2 -2
View File
@@ -587,7 +587,7 @@ impl RouteEnum {
impl<'a> core::convert::TryFrom<&'a str> for #name {
type Error = <Self as std::str::FromStr>::Err;
fn try_from(s: &'a str) -> Result<Self, Self::Error> {
fn try_from(s: &'a str) -> ::std::result::Result<Self, Self::Error> {
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<Self, Self::Err> {
fn from_str(s: &str) -> ::std::result::Result<Self, Self::Err> {
let route = s;
let (route, hash) = route.split_once('#').unwrap_or((route, ""));
let (route, query) = route.split_once('?').unwrap_or((route, ""));