Fix get_typed_fund extra param in benchmark (#5280)

This commit is contained in:
Timothy Chen
2022-11-16 06:56:03 -08:00
committed by GitHub
parent b0939f6626
commit 1bd78f1a35

View File

@@ -533,7 +533,7 @@ impl BenchState {
.take() .take()
.expect("instantiate the module before executing it"); .expect("instantiate the module before executing it");
let start_func = instance.get_typed_func::<(), (), _>(&mut store, "_start")?; let start_func = instance.get_typed_func::<(), ()>(&mut store, "_start")?;
match start_func.call(&mut store, ()) { match start_func.call(&mut store, ()) {
Ok(_) => Ok(()), Ok(_) => Ok(()),
Err(trap) => { Err(trap) => {