Lokathor / bytemuck

A crate for mucking around with piles of bytes
https://docs.rs/bytemuck
Apache License 2.0
697 stars 77 forks source link

Fix box_bytes_zst test #260

Closed zachs18 closed 1 month ago

zachs18 commented 1 month ago

Adjusts the test introduced in #258 to match the semantics introduced in #256.

Also adds a check that non-empty-BoxBytes -> boxed-ZST-slice fails, and a regression test that dropping an empty BoxBytes isn't UB (when run under Miri).