77use proc_macro2:: { Ident , TokenStream } ;
88use quote:: { format_ident, quote} ;
99use syn:: {
10- Attribute , Data , DeriveInput , Expr , ExprLit , Field , Fields , Lit , Meta , Result , Variant ,
11- WherePredicate ,
1210 parse:: { Parse , ParseStream } ,
1311 parse_quote,
1412 punctuated:: Punctuated ,
1513 token:: Comma ,
1614 visit:: Visit ,
15+ Attribute , Data , DeriveInput , Expr , ExprLit , Field , Fields , Lit , Meta , Result , Variant ,
16+ WherePredicate ,
1717} ;
1818
1919/// Name of zeroize-related attributes
@@ -454,7 +454,7 @@ mod tests {
454454 impl :: zeroize:: Zeroize for Z {
455455 fn zeroize( & mut self ) {
456456 match self {
457- #[ allow( unused_variables) ]
457+ #[ allow( unused_variables, unused_assignments ) ]
458458 Z { a, b, c } => {
459459 a. zeroize( ) ;
460460 b. zeroize( ) ;
@@ -484,7 +484,7 @@ mod tests {
484484 impl :: zeroize:: Zeroize for Z {
485485 fn zeroize( & mut self ) {
486486 match self {
487- #[ allow( unused_variables) ]
487+ #[ allow( unused_variables, unused_assignments ) ]
488488 Z { a, b, c } => {
489489 a. zeroize( ) ;
490490 b. zeroize( ) ;
@@ -520,7 +520,7 @@ mod tests {
520520 impl :: zeroize:: Zeroize for Z {
521521 fn zeroize( & mut self ) {
522522 match self {
523- #[ allow( unused_variables) ]
523+ #[ allow( unused_variables, unused_assignments ) ]
524524 Z { a, b, c } => {
525525 a. zeroize( ) ;
526526 b. zeroize( )
@@ -545,7 +545,7 @@ mod tests {
545545 impl <T > :: zeroize:: Zeroize for Z <T > where T : MyTrait {
546546 fn zeroize( & mut self ) {
547547 match self {
548- #[ allow( unused_variables) ]
548+ #[ allow( unused_variables, unused_assignments ) ]
549549 Z ( __zeroize_field_0) => {
550550 __zeroize_field_0. zeroize( )
551551 }
@@ -574,7 +574,7 @@ mod tests {
574574 use :: zeroize:: __internal:: AssertZeroize ;
575575 use :: zeroize:: __internal:: AssertZeroizeOnDrop ;
576576 match self {
577- #[ allow( unused_variables) ]
577+ #[ allow( unused_variables, unused_assignments ) ]
578578 Z { a, b, c } => {
579579 a. zeroize_or_on_drop( ) ;
580580 b. zeroize_or_on_drop( ) ;
0 commit comments