From 5925f3c8ee3c8ecf358ac2fa3c91b322cd23c10c Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Tue, 1 Oct 2024 10:26:55 -0500 Subject: [PATCH] Use the absolute path for result in the macro (#3017) --- packages/router-macro/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, ""));