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 code uses std::ptr::write to append the u64, regardless of the current alignment. Replacing that with write_unaligned would probably work. The type parameter is constrained by the ToByteSlice trait, but it seems the trait is not actually used. Not sure whether this is expected. It seems ToByteSlice is more of a marker trait here that indicates that the contents can be transmuted to a slice of bytes.
The text was updated successfully, but these errors were encountered:
The following test fails when run under miri:
The code uses
std::ptr::write
to append the u64, regardless of the current alignment. Replacing that withwrite_unaligned
would probably work. The type parameter is constrained by theToByteSlice
trait, but it seems the trait is not actually used. Not sure whether this is expected. It seemsToByteSlice
is more of a marker trait here that indicates that the contents can be transmuted to a slice of bytes.The text was updated successfully, but these errors were encountered: