File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ pub(super) fn deserialize(
3838 . map ( |( i, variant) | {
3939 let variant_index = field_i ( i) ;
4040
41- let block = Match ( enum_untagged:: generate_variant ( params, variant, cattrs) ) ;
41+ let block = Match ( enum_untagged:: deserialize_variant ( params, variant, cattrs) ) ;
4242
4343 quote ! {
4444 __Field:: #variant_index => #block
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ pub(super) fn deserialize(
2828 let attempts = variants
2929 . iter ( )
3030 . filter ( |variant| !variant. attrs . skip_deserializing ( ) )
31- . map ( |variant| Expr ( generate_variant ( params, variant, cattrs) ) ) ;
31+ . map ( |variant| Expr ( deserialize_variant ( params, variant, cattrs) ) ) ;
3232 // TODO this message could be better by saving the errors from the failed
3333 // attempts. The heuristic used by TOML was to count the number of fields
3434 // processed before an error, and use the error that happened after the
@@ -59,7 +59,7 @@ pub(super) fn deserialize(
5959}
6060
6161// Also used by adjacently tagged enums
62- pub ( super ) fn generate_variant (
62+ pub ( super ) fn deserialize_variant (
6363 params : & Parameters ,
6464 variant : & Variant ,
6565 cattrs : & attr:: Container ,
You can’t perform that action at this time.
0 commit comments