mirror of
https://github.com/serde-rs/serde.git
synced 2025-10-01 23:11:18 +00:00

This is not as useful as expected because the Serializer does not know the real index of each struct field being serialized. The best it can do is keep a counter, which goes wrong if fields are conditionally skipped. This reverts commit eec710189423d5770bd498fd674e3431483649db.