summary refs log tree commit diff
path: root/bit_field
diff options
context:
space:
mode:
Diffstat (limited to 'bit_field')
-rw-r--r--bit_field/bit_field_derive/bit_field_derive.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/bit_field/bit_field_derive/bit_field_derive.rs b/bit_field/bit_field_derive/bit_field_derive.rs
index 20b5b68..0bd0daf 100644
--- a/bit_field/bit_field_derive/bit_field_derive.rs
+++ b/bit_field/bit_field_derive/bit_field_derive.rs
@@ -319,6 +319,7 @@ fn get_declare_discriminants_for_enum(
             };
 
             quote! {
+                #[allow(non_upper_case_globals)]
                 const #variant: u64 = {
                     const IS_IN_BOUNDS: bool = (#ident::#variant as u64) < #upper_bound;