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
Use CStr::to_string_lossy in Base{Consumer,Producer}
In some error cases, the `Base{Consumer,Producer}` were eagerly copying strings,
and `unwrap`ing utf8 validation, just to print an error message.
This will avoid the allocation in the common case, and be panic-safe in the presumably unreachable case of invalid utf-8.
0 commit comments