mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 22:25:40 +00:00
Fix clippy lint
This commit is contained in:
parent
dbc4176964
commit
256253a1d5
@ -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) }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user