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
The only appropriate error for when you try and decode invalid bytes for your type is DecodeError::OtherString but this only exists when alloc is enabled. I think there should be an option for those without allocators. Something like InvalidEncoding { expected: &'static str } would be sufficient.
The text was updated successfully, but these errors were encountered:
The only appropriate error for when you try and decode invalid bytes for your type is
DecodeError::OtherString
but this only exists whenalloc
is enabled. I think there should be an option for those without allocators. Something likeInvalidEncoding { expected: &'static str }
would be sufficient.The text was updated successfully, but these errors were encountered: