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
I have a struct that contains a HashMap<u32, String>.
This type correctly deserializes when using serde_json::from_str() with a json string such as {"data":{"1":"test"}}.
Yet when I put this type into an untagged enum variant, it does not work anymore.
If I then change the key type from u32 to String, it compiles.
This does not seem like intended behaviour, otherwise the variant itself should also fail, see the playground for a better example.