Skip to content

Commit

Permalink
Fix local override of enum prefix-with-name
Browse files Browse the repository at this point in the history
Fixes #808
  • Loading branch information
jsgf committed Oct 4, 2024
1 parent 3ed9434 commit b596853
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bindgen/ir/enumeration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,7 @@ impl Item for Enum {
}
}

if config.enumeration.prefix_with_name
|| self.annotations.bool("prefix-with-name").unwrap_or(false)
if self.annotations.bool("prefix-with-name").unwrap_or(config.enumeration.prefix_with_name)
{
let separator = if config.export.mangle.remove_underscores {
""
Expand Down

0 comments on commit b596853

Please sign in to comment.