Skip to content
Snippets Groups Projects
Commit d13c5761 authored by Gav's avatar Gav
Browse files

Merge

parent 25d9afb5
No related merge requests found
......@@ -20,7 +20,7 @@ use std::cmp::Ordering;
use parking_lot::Mutex;
use std::collections::HashMap;
use wasmi::{
Module, ModuleInstance, MemoryInstance, MemoryRef, TableRef, ImportsBuilder,
Module, ModuleInstance, MemoryInstance, MemoryRef, TableRef, ImportsBuilder, self
};
use wasmi::RuntimeValue::{I32, I64};
use wasmi::memory_units::{Pages, Bytes};
......@@ -576,7 +576,7 @@ impl WasmExecutor {
let size = data.len() as u32;
let offset = fec.heap.allocate(size);
memory.set(offset, &data).map_err(|_| ErrorKind::PleaseRetry.into())?;
memory.set(offset, &data).map_err(|_: wasmi::Error| Error::from(ErrorKind::PleaseRetry))?;
let result = instance.invoke_export(
method,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment