@@ -201,7 +201,7 @@ impl ZeroizeAttrs {
201201 }
202202 }
203203 }
204- Data :: Union ( union_) => panic ! ( "Unsupported untagged union {:?}" , union_ ) ,
204+ Data :: Union ( union_) => panic ! ( "Unsupported untagged union {union_ :?}" ) ,
205205 }
206206
207207 result. auto_params = bound_accumulator. params ;
@@ -223,7 +223,7 @@ impl ZeroizeAttrs {
223223
224224 for meta in attr
225225 . 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 })" ) )
227227 {
228228 self . parse_meta ( & meta, variant, binding) ;
229229 }
@@ -289,7 +289,7 @@ impl ZeroizeAttrs {
289289 self . bound = Some ( Bounds ( Punctuated :: new ( ) ) ) ;
290290 } else {
291291 self . bound = Some ( lit. parse ( ) . unwrap_or_else ( |e| {
292- panic ! ( "error parsing bounds: {:?} ({})" , lit , e )
292+ panic ! ( "error parsing bounds: {lit :?} ({e })" )
293293 } ) ) ;
294294 }
295295
@@ -343,7 +343,7 @@ fn generate_fields(input: &DeriveInput, method: TokenStream) -> TokenStream {
343343 } )
344344 . collect ( ) ,
345345 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_ :?}" ) ,
347347 } ;
348348
349349 let arms = fields. into_iter ( ) . map ( |( name, fields) | {
@@ -396,7 +396,7 @@ fn attr_skip(attrs: &[Attribute]) -> bool {
396396 if list. path . is_ident ( ZEROIZE_ATTR ) {
397397 for meta in list
398398 . 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 })" ) )
400400 {
401401 if let Meta :: Path ( path) = meta {
402402 if path. is_ident ( "skip" ) {
0 commit comments