Clear some warnings

This commit is contained in:
Pyrex 2024-04-22 18:42:38 -07:00
parent 3d2d7cfea3
commit 082fbf3e80
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ pub(crate) fn integrate(linker: &mut Linker<ExecutorState>) -> VResult<()> {
Ok(())
}
fn yield_frame(caller: Caller<ExecutorState>) -> Result<(), Trap> {
fn yield_frame(_caller: Caller<ExecutorState>) -> Result<(), Trap> {
Err(Trap::from(YieldFrame {}))
}

View File

@ -1,7 +1,7 @@
use std::{fmt::Display, mem};
use std::mem;
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}};
@ -34,7 +34,7 @@ impl Executor {
let mut linker = <Linker<ExecutorState>>::new(&engine);
wasi::integrate(&mut linker, |hs| &mut hs.wasi)?;
engine_api::integrate(&mut linker);
engine_api::integrate(&mut linker)?;
let instance = linker
.instantiate(&mut store, &module)?