From 93ce27cdea25556f538a684061e0424b82d8137e Mon Sep 17 00:00:00 2001 From: Luiz Carlos Date: Fri, 13 Aug 2021 10:59:33 -0300 Subject: [PATCH] fix: allowed non_snake_case on trait impls Fixes bitflags#237 --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 5e1f440..500f543 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -400,6 +400,7 @@ macro_rules! __impl_all_bitflags { const $Flag: $T = 0; )+ } + #[allow(non_snake_case)] impl __BitFlags for $BitFlags { $( __impl_bitflags! { @@ -449,6 +450,7 @@ macro_rules! __impl_bitflags { // Conditionally override the check for just those flags that // are not #[cfg]ed away. + #[allow(non_snake_case)] impl __BitFlags for $BitFlags { $( __impl_bitflags! {