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
Deserializing errors on NonZero* could definitely be improved, not sure if this is possible, but somehow the normal numerical types have better information attached to them - is this fault of the wrappers - probably not.
As you can passing zero to non_zero_usize causes serde not to deserialize as expected but errors are hard to diagnose.
Following area could be improved:
Path of the last node is swallowed, ( it says just example - unlike for usize where it says example.usize )
The line is pointing at god knows what confusing readers.
When a person that has no access to the codebase encounters those errors it's almost impossible to guess what's the cause of the problem
The text was updated successfully, but these errors were encountered:
Deserializing errors on NonZero* could definitely be improved, not sure if this is possible, but somehow the normal numerical types have better information attached to them - is this fault of the wrappers - probably not.
silly example code
When setting the non_zero_usize to '0' - misleading error.
When setting the usize to '-1' - Nice error!
As you can passing zero to non_zero_usize causes serde not to deserialize as expected but errors are hard to diagnose.
Following area could be improved:
When a person that has no access to the codebase encounters those errors it's almost impossible to guess what's the cause of the problem
The text was updated successfully, but these errors were encountered: