File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ impl ZeroizeAttrs {
176
176
}
177
177
178
178
match & input. data {
179
- syn :: Data :: Enum ( enum_) => {
179
+ Data :: Enum ( enum_) => {
180
180
for variant in & enum_. variants {
181
181
for attr in & variant. attrs {
182
182
result. parse_attr ( attr, Some ( variant) , None ) ;
@@ -191,7 +191,7 @@ impl ZeroizeAttrs {
191
191
}
192
192
}
193
193
}
194
- syn :: Data :: Struct ( struct_) => {
194
+ Data :: Struct ( struct_) => {
195
195
for field in & struct_. fields {
196
196
for attr in & field. attrs {
197
197
result. parse_attr ( attr, None , Some ( field) ) ;
@@ -201,7 +201,7 @@ impl ZeroizeAttrs {
201
201
}
202
202
}
203
203
}
204
- syn :: Data :: Union ( union_) => panic ! ( "Unsupported untagged union {:?}" , union_) ,
204
+ Data :: Union ( union_) => panic ! ( "Unsupported untagged union {:?}" , union_) ,
205
205
}
206
206
207
207
result. auto_params = bound_accumulator. params ;
Original file line number Diff line number Diff line change 1
1
//! Integration tests for `zeroize_derive` proc macros
2
+
2
3
#![ cfg( feature = "zeroize_derive" ) ]
3
4
4
5
use zeroize:: { Zeroize , ZeroizeOnDrop } ;
@@ -318,6 +319,7 @@ fn derive_deref() {
318
319
319
320
#[ test]
320
321
#[ cfg( feature = "alloc" ) ]
322
+ #[ allow( dead_code) ]
321
323
fn derive_zeroize_on_drop_generic ( ) {
322
324
#[ derive( ZeroizeOnDrop ) ]
323
325
struct Y < T : Zeroize > ( Box < T > ) ;
@@ -327,6 +329,7 @@ fn derive_zeroize_on_drop_generic() {
327
329
}
328
330
329
331
#[ test]
332
+ #[ allow( dead_code) ]
330
333
fn derive_zeroize_unused_param ( ) {
331
334
#[ derive( Zeroize ) ]
332
335
struct Z < T > {
@@ -337,6 +340,7 @@ fn derive_zeroize_unused_param() {
337
340
}
338
341
339
342
#[ test]
343
+ #[ allow( dead_code) ]
340
344
// Issue #878
341
345
fn derive_zeroize_with_marker ( ) {
342
346
#[ derive( ZeroizeOnDrop , Zeroize ) ]
@@ -354,6 +358,7 @@ fn derive_zeroize_with_marker() {
354
358
}
355
359
356
360
#[ test]
361
+ #[ allow( dead_code) ]
357
362
// Issue #878
358
363
fn derive_zeroize_used_param ( ) {
359
364
#[ derive( Zeroize ) ]
You can’t perform that action at this time.
0 commit comments