diff --git a/crates/sol-macro-expander/src/expand/contract.rs b/crates/sol-macro-expander/src/expand/contract.rs index b5717615c..e32578e57 100644 --- a/crates/sol-macro-expander/src/expand/contract.rs +++ b/crates/sol-macro-expander/src/expand/contract.rs @@ -488,7 +488,7 @@ pub(super) fn expand(cx: &mut ExpCtxt<'_>, contract: &ItemContract) -> Result, enumm: &ItemEnum) -> Result let tokens = quote! { #(#attrs)* #doc - #[allow(non_camel_case_types, non_snake_case, clippy::style)] + #[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields, clippy::style)] #[derive(Clone, Copy)] #[repr(u8)] pub enum #name { @@ -82,7 +82,7 @@ pub(super) fn expand(cx: &ExpCtxt<'_>, enumm: &ItemEnum) -> Result #invalid_variant } - #[allow(non_camel_case_types, non_snake_case, clippy::style)] + #[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields, clippy::style)] const _: () = { use #alloy_sol_types as alloy_sol_types; diff --git a/crates/sol-macro-expander/src/expand/error.rs b/crates/sol-macro-expander/src/expand/error.rs index d96d8cc69..0fad4caaf 100644 --- a/crates/sol-macro-expander/src/expand/error.rs +++ b/crates/sol-macro-expander/src/expand/error.rs @@ -63,13 +63,13 @@ pub(super) fn expand(cx: &ExpCtxt<'_>, error: &ItemError) -> Result let tokens = quote! { #(#attrs)* #doc - #[allow(non_camel_case_types, non_snake_case)] + #[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)] #[derive(Clone)] pub struct #name { #(#fields),* } - #[allow(non_camel_case_types, non_snake_case, clippy::style)] + #[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields, clippy::style)] const _: () = { use #alloy_sol_types as alloy_sol_types; diff --git a/crates/sol-macro-expander/src/expand/event.rs b/crates/sol-macro-expander/src/expand/event.rs index a4674280c..b0efb361f 100644 --- a/crates/sol-macro-expander/src/expand/event.rs +++ b/crates/sol-macro-expander/src/expand/event.rs @@ -148,7 +148,7 @@ pub(super) fn expand(cx: &ExpCtxt<'_>, event: &ItemEvent) -> Result let tokens = quote! { #(#attrs)* #doc - #[allow(non_camel_case_types, non_snake_case, clippy::style)] + #[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields, clippy::style)] #[derive(Clone)] pub struct #name { #( @@ -157,7 +157,7 @@ pub(super) fn expand(cx: &ExpCtxt<'_>, event: &ItemEvent) -> Result )* } - #[allow(non_camel_case_types, non_snake_case, clippy::style)] + #[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields, clippy::style)] const _: () = { use #alloy_sol_types as alloy_sol_types; diff --git a/crates/sol-macro-expander/src/expand/function.rs b/crates/sol-macro-expander/src/expand/function.rs index 6a45da6f4..8ec376b3e 100644 --- a/crates/sol-macro-expander/src/expand/function.rs +++ b/crates/sol-macro-expander/src/expand/function.rs @@ -102,7 +102,7 @@ pub(super) fn expand(cx: &ExpCtxt<'_>, function: &ItemFunction) -> Result, function: &ItemFunction) -> Result, constructor: &ItemFunction) -> Result, s: &ItemStruct) -> Result { let tokens = quote! { #(#attrs)* #doc - #[allow(non_camel_case_types, non_snake_case)] + #[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)] #[derive(Clone)] pub struct #name { #(#fields),* } - #[allow(non_camel_case_types, non_snake_case, clippy::style)] + #[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields, clippy::style)] const _: () = { use #alloy_sol_types as alloy_sol_types; diff --git a/crates/sol-macro-expander/src/expand/udt.rs b/crates/sol-macro-expander/src/expand/udt.rs index 06e9f7ff0..7e5cf5208 100644 --- a/crates/sol-macro-expander/src/expand/udt.rs +++ b/crates/sol-macro-expander/src/expand/udt.rs @@ -33,7 +33,7 @@ pub(super) fn expand(cx: &ExpCtxt<'_>, udt: &ItemUdt) -> Result { let tokens = quote! { #(#attrs)* - #[allow(non_camel_case_types, non_snake_case)] + #[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)] #[derive(Clone)] pub struct #name(#underlying_rust);