Clear some warnings
This commit is contained in:
parent
3d2d7cfea3
commit
082fbf3e80
@ -11,7 +11,7 @@ pub(crate) fn integrate(linker: &mut Linker<ExecutorState>) -> VResult<()> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn yield_frame(caller: Caller<ExecutorState>) -> Result<(), Trap> {
|
fn yield_frame(_caller: Caller<ExecutorState>) -> Result<(), Trap> {
|
||||||
Err(Trap::from(YieldFrame {}))
|
Err(Trap::from(YieldFrame {}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use std::{fmt::Display, mem};
|
use std::mem;
|
||||||
|
|
||||||
use viperid::VResult;
|
use viperid::VResult;
|
||||||
use wasmi::{core::{HostError, Trap}, Engine, Linker, Module, Store, TypedFunc, TypedResumableCall, TypedResumableInvocation};
|
use wasmi::{core::Trap, Engine, Linker, Module, Store, TypedFunc, TypedResumableCall, TypedResumableInvocation};
|
||||||
|
|
||||||
use crate::{engine_api::{self, YieldFrame}, wasi::{self, StockWasi}};
|
use crate::{engine_api::{self, YieldFrame}, wasi::{self, StockWasi}};
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ impl Executor {
|
|||||||
|
|
||||||
let mut linker = <Linker<ExecutorState>>::new(&engine);
|
let mut linker = <Linker<ExecutorState>>::new(&engine);
|
||||||
wasi::integrate(&mut linker, |hs| &mut hs.wasi)?;
|
wasi::integrate(&mut linker, |hs| &mut hs.wasi)?;
|
||||||
engine_api::integrate(&mut linker);
|
engine_api::integrate(&mut linker)?;
|
||||||
|
|
||||||
let instance = linker
|
let instance = linker
|
||||||
.instantiate(&mut store, &module)?
|
.instantiate(&mut store, &module)?
|
||||||
|
Loading…
Reference in New Issue
Block a user