Skip to content

Commit

Permalink
Fix clippy errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
losfair committed Mar 19, 2019
1 parent 8b85099 commit 295efbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/dynasm-backend/src/codegen_x64.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::forget_copy)] // Used by dynasm.

use super::codegen::*;
use super::stack::{
ControlFrame, ControlStack, IfElseState, ScratchRegister, ValueInfo, ValueLocation, ValueStack,
Expand Down Expand Up @@ -5139,6 +5141,7 @@ enum CallIndirectLocalOrImport {
Import,
}

#[allow(clippy::cast_ptr_alignment)]
unsafe extern "C" fn call_indirect(
sig_index: usize,
local_or_import: CallIndirectLocalOrImport,
Expand Down Expand Up @@ -5214,6 +5217,7 @@ unsafe extern "C" fn _memory_size(
ret.0 as u32 as u64
}

#[allow(clippy::cast_ptr_alignment)]
unsafe extern "C" fn _memory_grow(
op: MemoryKind,
index: usize,
Expand Down

0 comments on commit 295efbf

Please sign in to comment.