Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
slice::from_raw_parts
instead of mem::transmute
Layout compatibility guarantees for `T` do not extend to types containing `T` (like `&[T]`), so use `from_raw_parts` instead of `mem::transmute`.
- Loading branch information