You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to roundtrip an enum that has an element Float(f32). That used to work with 1.0.25, but fails with 1.0.38. This gist has complete code that demonstrates the problem.
What happens is that the enum can be turned into a serde_json::Value, but trying to get the enum back from that causes the error invalid type: map, expected f32.
This is somewhat urgent, as it keeps us from updating other dependencies that use newer versions of serde_json (and we really need to update those).
For completeness sake, here is the serde_json::Value that fails to parse back to a Float(f32) and the error from my test program:
We need to roundtrip an enum that has an element
Float(f32)
. That used to work with 1.0.25, but fails with 1.0.38. This gist has complete code that demonstrates the problem.What happens is that the enum can be turned into a
serde_json::Value
, but trying to get the enum back from that causes the errorinvalid type: map, expected f32
.This is somewhat urgent, as it keeps us from updating other dependencies that use newer versions of serde_json (and we really need to update those).
For completeness sake, here is the
serde_json::Value
that fails to parse back to aFloat(f32)
and the error from my test program:The text was updated successfully, but these errors were encountered: