diff --git a/src/expand.rs b/src/expand.rs index e10ee64..4d59e14 100644 --- a/src/expand.rs +++ b/src/expand.rs @@ -27,6 +27,7 @@ pub(crate) fn expand_struct(mut item: ItemStruct) -> proc_macro::TokenStream { let inline_fn = quote! { #[doc(hidden)] + #[allow(non_snake_case)] fn #fn_name_ident () -> #return_type { #default }