forked from google/zerocopy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix alignment bug in test_impls (google#944)
In the test for `TryFromBytes::try_from_mut`, in order to get a mutable slice, we first copy into a new `Vec`. Previously, we failed to guarantee that this `Vec` is aligned, and so the test sometimes spuriously failed.
- Loading branch information
Showing
1 changed file
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters