tigerros 1 年間 前
コミット
24e8ac2ad3
2 ファイル変更2 行追加2 行削除
  1. 1 1
      packages/router-macro/src/lib.rs
  2. 1 1
      packages/router-macro/src/segment.rs

+ 1 - 1
packages/router-macro/src/lib.rs

@@ -559,7 +559,7 @@ impl RouteEnum {
             #(#type_defs)*
 
             #[allow(non_camel_case_types)]
-            #[derive(Debug, PartialEq)]
+            #[derive(Debug, PartialEq, Eq)]
             pub enum #match_error_name {
                 #(#error_variants),*
             }

+ 1 - 1
packages/router-macro/src/segment.rs

@@ -309,7 +309,7 @@ pub(crate) fn create_error_type(
 
     quote! {
         #[allow(non_camel_case_types)]
-        #[derive(Debug, PartialEq)]
+        #[derive(Debug, PartialEq, Eq)]
         pub enum #error_name {
             ExtraSegments(String),
             #(#child_type_variant,)*