diff --git a/src/bindgen/ir/enumeration.rs b/src/bindgen/ir/enumeration.rs index 2e633a7d..d6ec313a 100644 --- a/src/bindgen/ir/enumeration.rs +++ b/src/bindgen/ir/enumeration.rs @@ -534,8 +534,10 @@ 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 { ""