fix example

This commit is contained in:
Pat Hickey
2021-05-06 14:34:30 -07:00
parent b0335d3ddf
commit 3d9b98f1df
3 changed files with 4 additions and 5 deletions

View File

@@ -155,9 +155,8 @@ async fn _run_wasm(inputs: Inputs) -> Result<(), Error> {
// Instantiate
let instance = linker.instantiate_async(&inputs.env.module).await?;
instance
.get_typed_func("_start")
.ok_or_else(|| anyhow!("wasm is a wasi command with export _start"))?
.call_async(&[])
.get_typed_func::<(), ()>("_start")?
.call_async(())
.await?;
Ok(())