@@ -2217,7 +2217,11 @@ fn deserialize_identifier(
2217
2217
let ident = & field. ident ;
2218
2218
let aliases = field. aliases ;
2219
2219
// `aliases` also contains a main name
2220
- quote ! ( #( #aliases) |* => _serde:: __private:: Ok ( #this_value:: #ident) )
2220
+ quote ! {
2221
+ #(
2222
+ #aliases => _serde:: __private:: Ok ( #this_value:: #ident) ,
2223
+ ) *
2224
+ }
2221
2225
} ) ;
2222
2226
let bytes_mapping = deserialized_fields. iter ( ) . map ( |field| {
2223
2227
let ident = & field. ident ;
@@ -2226,7 +2230,11 @@ fn deserialize_identifier(
2226
2230
. aliases
2227
2231
. iter ( )
2228
2232
. map ( |alias| Literal :: byte_string ( alias. value . as_bytes ( ) ) ) ;
2229
- quote ! ( #( #aliases) |* => _serde:: __private:: Ok ( #this_value:: #ident) )
2233
+ quote ! {
2234
+ #(
2235
+ #aliases => _serde:: __private:: Ok ( #this_value:: #ident) ,
2236
+ ) *
2237
+ }
2230
2238
} ) ;
2231
2239
2232
2240
let expecting = expecting. unwrap_or ( if is_variant {
@@ -2424,7 +2432,7 @@ fn deserialize_identifier(
2424
2432
__E: _serde:: de:: Error ,
2425
2433
{
2426
2434
match __value {
2427
- #( #str_mapping, ) *
2435
+ #( #str_mapping) *
2428
2436
_ => {
2429
2437
#value_as_borrowed_str_content
2430
2438
#fallthrough_borrowed_arm
@@ -2437,7 +2445,7 @@ fn deserialize_identifier(
2437
2445
__E: _serde:: de:: Error ,
2438
2446
{
2439
2447
match __value {
2440
- #( #bytes_mapping, ) *
2448
+ #( #bytes_mapping) *
2441
2449
_ => {
2442
2450
#bytes_to_str
2443
2451
#value_as_borrowed_bytes_content
@@ -2462,7 +2470,7 @@ fn deserialize_identifier(
2462
2470
__E: _serde:: de:: Error ,
2463
2471
{
2464
2472
match __value {
2465
- #( #str_mapping, ) *
2473
+ #( #str_mapping) *
2466
2474
_ => {
2467
2475
#value_as_str_content
2468
2476
#fallthrough_arm
@@ -2475,7 +2483,7 @@ fn deserialize_identifier(
2475
2483
__E: _serde:: de:: Error ,
2476
2484
{
2477
2485
match __value {
2478
- #( #bytes_mapping, ) *
2486
+ #( #bytes_mapping) *
2479
2487
_ => {
2480
2488
#bytes_to_str
2481
2489
#value_as_bytes_content
0 commit comments