Adrian Wannenmacher %!s(int64=2) %!d(string=hai) anos
pai
achega
053dc6fa3e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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))