From 76df7752380aa8f6077ca3674f80b9735c1cbf0c Mon Sep 17 00:00:00 2001 From: marc2332 Date: Thu, 23 Jan 2025 19:38:39 +0100 Subject: [PATCH] fmt --- packages/router/src/navigation.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/router/src/navigation.rs b/packages/router/src/navigation.rs index 8e203c31ed..cd331122fb 100644 --- a/packages/router/src/navigation.rs +++ b/packages/router/src/navigation.rs @@ -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 From for NavigationTarget { fn from(value: R) -> Self { @@ -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()), } } @@ -110,7 +112,7 @@ impl From for NavigationTarget { Some(router) => match router.internal_route(&value) { true => NavigationTarget::Internal(value), false => NavigationTarget::External(value), - } + }, None => NavigationTarget::External(value.to_string()), } }