1
0
Adrian Wannenmacher 2 жил өмнө
parent
commit
053dc6fa3e
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      examples/router.rs

+ 2 - 2
examples/router.rs

@@ -13,12 +13,12 @@ fn app(cx: Scope) -> Element {
             .fixed(
                 "users",
                 Route::empty()
-                    .nested(Segment::content(comp(UserList)).catch_all((comp(User), UserId { }))),
+                    .nested(Segment::content(comp(UserList)).catch_all((comp(User), UserId {}))),
             )
             .fixed(
                 "blog",
                 Route::empty().nested(
-                    Segment::content(comp(BlogList)).catch_all((comp(BlogPost), PostId { })),
+                    Segment::content(comp(BlogList)).catch_all((comp(BlogPost), PostId {})),
                 ),
             )
             .fallback(comp(E404))