浏览代码

Merge pull request #1975 from tigerros/fix-routable-clippy-warning

Fix Clippy warning in `Routable` macro
Evan Almloff 1 年之前
父节点
当前提交
451a8f231e
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      packages/router-macro/src/lib.rs
  2. 1 0
      packages/router-macro/src/segment.rs

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

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

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

@@ -309,6 +309,7 @@ pub(crate) fn create_error_type(
 
     quote! {
         #[allow(non_camel_case_types)]
+        #[allow(clippy::derive_partial_eq_without_eq)]
         #[derive(Debug, PartialEq)]
         pub enum #error_name {
             ExtraSegments(String),