From ecc99cd01322253b5b9888a155f2e3d0355f9365 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Tue, 23 May 2023 19:39:18 -0500 Subject: [PATCH] format example --- packages/router-macro/src/route.rs | 1 - packages/router/examples/simple_routes.rs | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/router-macro/src/route.rs b/packages/router-macro/src/route.rs index bf280a7a9..e15078875 100644 --- a/packages/router-macro/src/route.rs +++ b/packages/router-macro/src/route.rs @@ -269,7 +269,6 @@ impl Route { None => quote! {}, } } - } impl ToTokens for Route { diff --git a/packages/router/examples/simple_routes.rs b/packages/router/examples/simple_routes.rs index 0c9144cb0..380f5ce8d 100644 --- a/packages/router/examples/simple_routes.rs +++ b/packages/router/examples/simple_routes.rs @@ -113,9 +113,13 @@ fn Route3(cx: Scope, dynamic: String) -> Element { } } } - else{None} + else { + None + } + } + else { + None } - else{None} } }