diff --git a/crates/wiggle/wasmtime/macro/src/lib.rs b/crates/wiggle/wasmtime/macro/src/lib.rs index 6dc7b14476..24732c7f2e 100644 --- a/crates/wiggle/wasmtime/macro/src/lib.rs +++ b/crates/wiggle/wasmtime/macro/src/lib.rs @@ -288,7 +288,7 @@ fn generate_func( let #name_ident = wasmtime::Func::#wrapper( store, ctx.clone(), - move |caller: wasmtime::Caller<'_>, my_ctx: &Rc> #(,#arg_decls)*| + move |caller: wasmtime::Caller<'_>, my_ctx: &std::rc::Rc> #(,#arg_decls)*| -> Box>> { Box::new(async move { Self::#fn_ident(&caller, &mut my_ctx.borrow_mut() #(, #arg_names)*).await }) }