From b596853d4ad4a85242ed3f63845edb59d5684c96 Mon Sep 17 00:00:00 2001 From: Jeremy Fitzhardinge Date: Thu, 3 Oct 2024 18:48:47 -0700 Subject: [PATCH] Fix local override of enum prefix-with-name Fixes #808 --- src/bindgen/ir/enumeration.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bindgen/ir/enumeration.rs b/src/bindgen/ir/enumeration.rs index 2e633a7df..7d59408c0 100644 --- a/src/bindgen/ir/enumeration.rs +++ b/src/bindgen/ir/enumeration.rs @@ -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 { ""