Adrian Wannenmacher 2 سال پیش
والد
کامیت
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))