Merge pull request #256 from saiintbrisson/issue-237

fix: allowed non_snake_case on trait impls
This commit is contained in:
Ashley Mannix 2021-08-16 13:25:46 +10:00 committed by GitHub
commit acfba7d335
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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! {