From cb81a727cc87db28b22044aaf5c979b0a9ac5747 Mon Sep 17 00:00:00 2001 From: Andeya Date: Sun, 29 Sep 2024 17:40:37 +0800 Subject: [PATCH] chore(craft-macros): Add #[allow(non_camel_case_types)] --- crates/craft-macros/src/craft.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/craft-macros/src/craft.rs b/crates/craft-macros/src/craft.rs index dcf1d94d8..ceba57162 100644 --- a/crates/craft-macros/src/craft.rs +++ b/crates/craft-macros/src/craft.rs @@ -140,6 +140,7 @@ fn rewrite_method( let where_clause = impl_generics.make_where_clause().clone(); parse_quote! { #vis fn #method_name(#receiver) -> impl #handler { + #[allow(non_camel_case_types)] pub struct handle #impl_generics(::std::sync::Arc<#self_ty>) #where_clause; use ::std::ops::Deref; impl #impl_generics Deref for handle #impl_generics #where_clause{