add allow(non_camel_case_types) to generated pref structs (#33987)

Signed-off-by: Ville Lindholm <ville@lindholm.dev>
This commit is contained in:
Ville Lindholm 2024-10-24 12:36:13 +03:00 committed by GitHub
parent 12dd79c3e8
commit 202cb53d5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -84,6 +84,7 @@ impl Build {
.collect::<Result<Vec<_>>>()?;
self.output.extend(quote! {
#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
#[allow(non_camel_case_types)]
pub struct #struct_name {
#(#field_defs), *
}