Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix as_bytes() for Option<T> when T is fixed width
Previously a length 1 buffer would be returned for the None type, instead of a length 1 + T::fixed_width(). This did not result in data corruption because the buffer these are copied into was sized as Option<T>::fixed_width(). Still the implementation was incorrect.
- Loading branch information