Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Jan 23, 2025
1 parent 0e4862a commit 76df775
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/router/src/navigation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ use std::{

use url::{ParseError, Url};

use crate::{components::child_router::consume_child_route_mapping, routable::Routable, hooks::try_router};
use crate::{
components::child_router::consume_child_route_mapping, hooks::try_router, routable::Routable,
};

impl<R: Routable> From<R> for NavigationTarget {
fn from(value: R) -> Self {
Expand Down Expand Up @@ -98,7 +100,7 @@ impl From<&str> for NavigationTarget {
Some(router) => match router.internal_route(value) {
true => NavigationTarget::Internal(value.to_string()),
false => NavigationTarget::External(value.to_string()),
}
},
None => NavigationTarget::External(value.to_string()),
}
}
Expand All @@ -110,7 +112,7 @@ impl From<String> for NavigationTarget {
Some(router) => match router.internal_route(&value) {
true => NavigationTarget::Internal(value),
false => NavigationTarget::External(value),
}
},
None => NavigationTarget::External(value.to_string()),
}
}
Expand Down

0 comments on commit 76df775

Please sign in to comment.