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
Currently the decoding behaviour for restricted string types is, that on debug build, invalid character will cause panic. On release builds they are ignored, and there is no error.
There was some discussion that this should be changed, so leaving this issue as reminder.
Few things to consider:
The performance impact if every character from the input stream is separately validated
Should the error type be Enum with variants of every string type or Struct (everyone separately)?
The text was updated successfully, but these errors were encountered:
Currently the decoding behaviour for restricted string types is, that on debug build, invalid character will cause panic. On release builds they are ignored, and there is no error.
There was some discussion that this should be changed, so leaving this issue as reminder.
Few things to consider:
The text was updated successfully, but these errors were encountered: