Skip to content

Commit

Permalink
fix(runtime-c-api) Fix Clippy errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Mar 12, 2019
1 parent 675f681 commit a390a28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/runtime-c-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,7 @@ pub unsafe extern "C" fn wasmer_instance_exports(

/// Sets the `data` field of the instance context. This context will be
/// passed to all imported function for instance.
#[allow(clippy::cast_ptr_alignment)]
#[no_mangle]
pub extern "C" fn wasmer_instance_context_data_set(
instance: *mut wasmer_instance_t,
Expand Down Expand Up @@ -1362,6 +1363,7 @@ pub extern "C" fn wasmer_instance_context_memory(
}

/// Gets the `data` field within the context.
#[allow(clippy::cast_ptr_alignment)]
#[no_mangle]
pub extern "C" fn wasmer_instance_context_data_get(
ctx: *const wasmer_instance_context_t,
Expand Down

0 comments on commit a390a28

Please sign in to comment.