File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -143,8 +143,7 @@ macro_rules! __cpp_internal {
143
143
( @expand_rust_macro [ $( $a: tt) * ] $i: ident [ $( $an: ident : $at: ty as $ac: tt) ,* ] { $( $body: tt) * } ) => {
144
144
#[ allow( non_snake_case) ]
145
145
#[ allow( unused_unsafe) ]
146
- #[ cfg_attr( feature = "cargo-clippy" , allow( clippy:: forget_copy) ) ]
147
- #[ cfg_attr( feature = "cargo-clippy" , allow( clippy:: forget_ref) ) ]
146
+ #[ allow( clippy:: forget_copy, clippy:: forget_ref) ]
148
147
#[ doc( hidden) ]
149
148
$( $a) * unsafe extern "C" fn $i( $( $an : * const $at) ,* ) {
150
149
$( let $an : $at = unsafe { $an. read( ) } ; ) *
@@ -156,8 +155,7 @@ macro_rules! __cpp_internal {
156
155
( @expand_rust_macro [ $( $a: tt) * ] $i: ident [ $( $an: ident : $at: ty as $ac: tt) ,* ] -> $rt: ty as $rc: tt { $( $body: tt) * } ) => {
157
156
#[ allow( non_snake_case) ]
158
157
#[ allow( unused_unsafe) ]
159
- #[ cfg_attr( feature = "cargo-clippy" , allow( clippy:: forget_copy) ) ]
160
- #[ cfg_attr( feature = "cargo-clippy" , allow( clippy:: forget_ref) ) ]
158
+ #[ allow( clippy:: forget_copy, clippy:: forget_ref) ]
161
159
#[ doc( hidden) ]
162
160
$( $a) * unsafe extern "C" fn $i( $( $an : * const $at, ) * rt : * mut $rt) -> * mut $rt {
163
161
You can’t perform that action at this time.
0 commit comments