Skip to content

Commit

Permalink
fixes to PR
Browse files Browse the repository at this point in the history
  • Loading branch information
YaronWittenstein committed Oct 7, 2019
1 parent 170ffa2 commit 4adfbc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions lib/runtime-core/src/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ mod test {
use std::sync::Arc;

struct Data {
inner: *const c_void,
inner: *const u32,
}

unsafe impl Send for Data {}
Expand All @@ -272,8 +272,7 @@ mod test {

#[test]
fn state_creator_fn() {
let ptr = std::ptr::null();

let ptr = &0xAABBCCDDu32 as *const u32;
let data = Arc::new(Data { inner: ptr });

let imports = imports! {
Expand All @@ -288,8 +287,7 @@ mod test {

#[test]
fn state_creator_closure() {
let ptr = std::ptr::null();

let ptr = &0xAABBCCDDu32 as *const u32;
let data = Arc::new(Data { inner: ptr });

let imports = imports! {
Expand Down
2 changes: 1 addition & 1 deletion lib/runtime-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![allow(
#![deny(
dead_code,
nonstandard_style,
unused_imports,
Expand Down

0 comments on commit 4adfbc4

Please sign in to comment.