diff options
Diffstat (limited to 'benches/util/mod.rs')
| -rw-r--r-- | benches/util/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/benches/util/mod.rs b/benches/util/mod.rs index aa7b418..03e2075 100644 --- a/benches/util/mod.rs +++ b/benches/util/mod.rs @@ -33,10 +33,10 @@ pub fn wasmi(wasm: &[u8]) -> (wasmi::Module, wasmi::Store<()>, wasmi::Linker<()> pub fn wasmer(wasm: &[u8]) -> (wasmer::Store, wasmer::Instance) { use wasmer::*; - let engine: Engine = wasmer::Singlepass::default().into(); - let mut store = Store::default(); + let compiler = Singlepass::default(); + let mut store = Store::new(compiler); let import_object = imports! {}; - let module = wasmer::Module::from_binary(&engine, &wasm).expect("wasmer::Module::from_binary"); + let module = Module::new(&store, wasm).expect("wasmer::Module::new"); let instance = Instance::new(&mut store, &module, &import_object).expect("Instance::new"); (store, instance) } |
