Skip to content

Commit

Permalink
Allowed clippy::upper_case_acronyms on enums
Browse files Browse the repository at this point in the history
Much the same as non_camel_case_types but clippy will still complain
without this.
  • Loading branch information
lkirkwood committed Apr 21, 2024
1 parent 938809c commit 56642df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xsd-parser/src/generator/enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub trait EnumGenerator {
}

fn macros(&self, entity: &Enum, gen: &Generator) -> Cow<'static, str> {
let allows = "#[allow(non_camel_case_types)]\n";
let allows = "#[allow(non_camel_case_types, clippy::upper_case_acronyms)]\n";

if entity.source == EnumSource::Union {
return format!("{allows}#[derive(PartialEq, Debug, UtilsUnionSerDe)]").into();
Expand Down

0 comments on commit 56642df

Please sign in to comment.