mirror of https://github.com/aya-rs/aya
aya-log: Make miri happy
Miri took issue about using slice::from_raw_parts without checking for alignment. Instead, we can simply convert to a [u8;16] into a [u16;8] by iterating in chunks of 2 and bitshifting (remembering that these arrays are in network-endian order). Signed-off-by: Dave Tucker <dave@dtucker.co.uk>pull/390/head
parent
a8eef00595
commit
b2924a3a26
Loading…
Reference in New Issue