Fix clippy lint

This commit is contained in:
Lachlan Sneff 2019-03-28 13:10:22 -07:00
parent dbc4176964
commit 256253a1d5

View File

@ -1,6 +1,7 @@
use crate::state::WasiState; use crate::state::WasiState;
use wasmer_runtime_core::{memory::Memory, vm::Ctx}; use wasmer_runtime_core::{memory::Memory, vm::Ctx};
#[allow(clippy::mut_from_ref)]
fn get_wasi_state(ctx: &Ctx) -> &mut WasiState { fn get_wasi_state(ctx: &Ctx) -> &mut WasiState {
unsafe { &mut *(ctx.data as *mut WasiState) } unsafe { &mut *(ctx.data as *mut WasiState) }
} }