Skip to content

Commit

Permalink
fix: allowed non_snake_case on trait impls
Browse files Browse the repository at this point in the history
Fixes #237
  • Loading branch information
saiintbrisson committed Aug 13, 2021
1 parent b234906 commit 93ce27c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Expand Up @@ -400,6 +400,7 @@ macro_rules! __impl_all_bitflags {
const $Flag: $T = 0;
)+
}
#[allow(non_snake_case)]
impl __BitFlags for $BitFlags {
$(
__impl_bitflags! {
Expand Down Expand Up @@ -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! {
Expand Down

0 comments on commit 93ce27c

Please sign in to comment.