diff --git a/src/bin/wasmtime.rs b/src/bin/wasmtime.rs index 1801a335c8..e16724e9bb 100644 --- a/src/bin/wasmtime.rs +++ b/src/bin/wasmtime.rs @@ -314,7 +314,7 @@ fn rmain() -> Result<(), Error> { module_registry.insert( "wasi_unstable".to_owned(), - Instance::from_handle(store.clone(), wasi)?, + Instance::from_handle(store.clone(), wasi.clone())?, ); module_registry.insert( "wasi_unstable_preview0".to_owned(),