File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1381,7 +1381,7 @@ fn deserialize_adjacently_tagged_enum(
1381
1381
_serde:: export:: Err ( <__A:: Error as _serde:: de:: Error >:: missing_field( #content) )
1382
1382
} ;
1383
1383
let mut missing_content_fallthrough = quote ! ( ) ;
1384
- let mut missing_content_arms = variants
1384
+ let missing_content_arms = variants
1385
1385
. iter ( )
1386
1386
. enumerate ( )
1387
1387
. filter ( |& ( _, variant) | !variant. attrs . skip_deserializing ( ) )
@@ -1409,8 +1409,8 @@ fn deserialize_adjacently_tagged_enum(
1409
1409
__Field:: #variant_index => #arm,
1410
1410
} )
1411
1411
} )
1412
- . peekable ( ) ;
1413
- if missing_content_arms. peek ( ) . is_some ( ) {
1412
+ . collect :: < Vec < _ > > ( ) ;
1413
+ if ! missing_content_arms. is_empty ( ) {
1414
1414
missing_content = quote ! {
1415
1415
match __field {
1416
1416
#( #missing_content_arms) *
You can’t perform that action at this time.
0 commit comments