瀏覽代碼

fix non_camel_case_types warning

Evan Almloff 2 年之前
父節點
當前提交
3d8bceb77f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/router-macro/src/lib.rs

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

@@ -231,6 +231,7 @@ impl RouteEnum {
         quote! {
             #(#type_defs)*
 
+            #[allow(non_camel_case_types)]
             #[derive(Debug, PartialEq)]
             pub enum #match_error_name {
                 #(#error_variants),*