Fix clippy errors.

This commit is contained in:
losfair
2019-03-20 01:52:00 +08:00
parent 8b85099fc8
commit 295efbf3a9

View File

@ -1,3 +1,5 @@
#![allow(clippy::forget_copy)] // Used by dynasm.
use super::codegen::*; use super::codegen::*;
use super::stack::{ use super::stack::{
ControlFrame, ControlStack, IfElseState, ScratchRegister, ValueInfo, ValueLocation, ValueStack, ControlFrame, ControlStack, IfElseState, ScratchRegister, ValueInfo, ValueLocation, ValueStack,
@ -5139,6 +5141,7 @@ enum CallIndirectLocalOrImport {
Import, Import,
} }
#[allow(clippy::cast_ptr_alignment)]
unsafe extern "C" fn call_indirect( unsafe extern "C" fn call_indirect(
sig_index: usize, sig_index: usize,
local_or_import: CallIndirectLocalOrImport, local_or_import: CallIndirectLocalOrImport,
@ -5214,6 +5217,7 @@ unsafe extern "C" fn _memory_size(
ret.0 as u32 as u64 ret.0 as u32 as u64
} }
#[allow(clippy::cast_ptr_alignment)]
unsafe extern "C" fn _memory_grow( unsafe extern "C" fn _memory_grow(
op: MemoryKind, op: MemoryKind,
index: usize, index: usize,