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 @@ -573,14 +573,14 @@ impl serde::ser::Serializer for &mut MapValueSerializer {
573573
574574pub struct SerializeStructVariant {
575575 variant : & ' static str ,
576- inner : SerializeMap ,
576+ inner : SerializeInlineTable ,
577577}
578578
579579impl SerializeStructVariant {
580580 pub ( crate ) fn struct_ ( variant : & ' static str , len : usize ) -> Self {
581581 Self {
582582 variant,
583- inner : SerializeMap :: table_with_capacity ( len) ,
583+ inner : SerializeInlineTable :: with_capacity ( len) ,
584584 }
585585 }
586586}
@@ -599,7 +599,7 @@ impl serde::ser::SerializeStructVariant for SerializeStructVariant {
599599
600600 #[ inline]
601601 fn end ( self ) -> Result < Self :: Ok , Self :: Error > {
602- let inner = serde:: ser:: SerializeStruct :: end ( self . inner ) ?;
602+ let inner = serde:: ser:: SerializeStruct :: end ( self . inner ) ?. into ( ) ;
603603 let mut items = crate :: table:: KeyValuePairs :: new ( ) ;
604604 let value = crate :: Item :: Value ( inner) ;
605605 items. insert ( crate :: Key :: new ( self . variant ) , value) ;
You can’t perform that action at this time.
0 commit comments