Skip to content

Commit

Permalink
Use the absolute path for result in the macro (#3017)
Browse files Browse the repository at this point in the history
  • Loading branch information
ealmloff authored Oct 1, 2024
1 parent f9c2f74 commit 5925f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/router-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,15 +587,15 @@ 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()
}
}

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, ""));
Expand Down

0 comments on commit 5925f3c

Please sign in to comment.