Skip to content

Commit

Permalink
Merge pull request #256 from saiintbrisson/issue-237
Browse files Browse the repository at this point in the history
fix: allowed non_snake_case on trait impls
  • Loading branch information
KodrAus committed Aug 16, 2021
2 parents b234906 + 93ce27c commit acfba7d
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 acfba7d

Please sign in to comment.