mirror of
https://gitee.com/openharmony/third_party_rust_bitflags
synced 2024-11-23 07:10:11 +00:00
fix: allowed non_snake_case on trait impls
Fixes bitflags#237
This commit is contained in:
parent
b234906c23
commit
93ce27cdea
@ -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! {
|
||||
|
Loading…
Reference in New Issue
Block a user