Ignore clippy error level

This commit is contained in:
Brandon Fish
2019-01-18 00:33:46 -06:00
parent e43c3cb2eb
commit 47f46be69c
7 changed files with 27 additions and 0 deletions

View File

@ -112,6 +112,7 @@ pub struct GuestStat {
st_ino: u64,
}
#[allow(clippy::cast_ptr_alignment)]
pub unsafe fn copy_stat_into_wasm(instance: &mut Instance, buf: u32, stat: &stat) {
let stat_ptr = instance.memory_offset_addr(0, buf as _) as *mut GuestStat;
(*stat_ptr).st_dev = stat.st_dev as _;