Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore ptr_as_ptr pedantic clippy lint
warning: `as` casting between raw pointers without changing its mutability --> src/bytearray.rs:55:20 | 55 | unsafe { &*(bytes as *const [u8; N] as *const ByteArray<N>) } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try `pointer::cast`, a safer alternative: `(bytes as *const [u8; N]).cast::<ByteArray<N>>()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_as_ptr = note: `-W clippy::ptr-as-ptr` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::ptr_as_ptr)]`
- Loading branch information