Closed FishArmy100 closed 1 year ago
Seems to work for me. Here is the output I get:
Orig Custom("lala", 123)
Seri first: lala
second: 123
New Custom("lala", 123)
In case it helps anyone who comes across this issue, I was having the same error reported in this issue, and it turned out that I was using serde_yaml
0.8 (because that was what was listed in the example I was starting from). Upgrading to serde_yaml
0.9 fixed the problem.
This code crashes with
serde_yaml
, but not withserde_json
. The original example for this code was hereError message: