@@ -201,7 +201,7 @@ impl ZeroizeAttrs {
201
201
}
202
202
}
203
203
}
204
- 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 ;
@@ -223,7 +223,7 @@ impl ZeroizeAttrs {
223
223
224
224
for meta in attr
225
225
. parse_args_with ( Punctuated :: < Meta , Comma > :: parse_terminated)
226
- . unwrap_or_else ( |e| panic ! ( "error parsing attribute: {:?} ({})" , attr , e ) )
226
+ . unwrap_or_else ( |e| panic ! ( "error parsing attribute: {attr :?} ({e })" ) )
227
227
{
228
228
self . parse_meta ( & meta, variant, binding) ;
229
229
}
@@ -289,7 +289,7 @@ impl ZeroizeAttrs {
289
289
self . bound = Some ( Bounds ( Punctuated :: new ( ) ) ) ;
290
290
} else {
291
291
self . bound = Some ( lit. parse ( ) . unwrap_or_else ( |e| {
292
- panic ! ( "error parsing bounds: {:?} ({})" , lit , e )
292
+ panic ! ( "error parsing bounds: {lit :?} ({e })" )
293
293
} ) ) ;
294
294
}
295
295
@@ -343,7 +343,7 @@ fn generate_fields(input: &DeriveInput, method: TokenStream) -> TokenStream {
343
343
} )
344
344
. collect ( ) ,
345
345
Data :: Struct ( ref struct_) => vec ! [ ( quote! { #input_id } , & struct_. fields) ] ,
346
- Data :: Union ( ref union_) => panic ! ( "Cannot generate fields for untagged union {:?}" , union_ ) ,
346
+ Data :: Union ( ref union_) => panic ! ( "Cannot generate fields for untagged union {union_ :?}" ) ,
347
347
} ;
348
348
349
349
let arms = fields. into_iter ( ) . map ( |( name, fields) | {
@@ -396,7 +396,7 @@ fn attr_skip(attrs: &[Attribute]) -> bool {
396
396
if list. path . is_ident ( ZEROIZE_ATTR ) {
397
397
for meta in list
398
398
. parse_args_with ( Punctuated :: < Meta , Comma > :: parse_terminated)
399
- . unwrap_or_else ( |e| panic ! ( "error parsing attribute: {:?} ({})" , list , e ) )
399
+ . unwrap_or_else ( |e| panic ! ( "error parsing attribute: {list :?} ({e })" ) )
400
400
{
401
401
if let Meta :: Path ( path) = meta {
402
402
if path. is_ident ( "skip" ) {
0 commit comments