mirror of https://github.com/aya-rs/aya
Appease clippy
```
warning: transmute used without annotations
--> aya-log-common/src/lib.rs:220:41
|
220 | let bytes = unsafe { core::mem::transmute::<_, [u8; 16]>(self) };
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 8], [u8; 16]>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_transmute_annotations
= note: `#[warn(clippy::missing_transmute_annotations)]` on by default
error: transmute used without annotations
--> aya/src/maps/mod.rs:1130:52
|
1130 | .copy_from_slice(unsafe { mem::transmute(TEST_NAME) });
| ^^^^^^^^^ help: consider adding missing annotations: `transmute::<&str, &[i8]>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_transmute_annotations
note: the lint level is defined here
--> aya/src/lib.rs:41:5
|
41 | clippy::all,
| ^^^^^^^^^^^
= note: `#[deny(clippy::missing_transmute_annotations)]` implied by `#[deny(clippy::all)]`
```
pull/923/head
parent
c3ae6f90d8
commit
09442c2cbe
Loading…
Reference in New Issue