From 37b9fc53332855b662bc49af1f92affa8612a285 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 2 Sep 2021 07:38:29 -0700 Subject: [PATCH] Fix async build --- crates/wasmtime/src/store.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/wasmtime/src/store.rs b/crates/wasmtime/src/store.rs index ca1fb4dd27..8b19cfcbc5 100644 --- a/crates/wasmtime/src/store.rs +++ b/crates/wasmtime/src/store.rs @@ -1233,9 +1233,9 @@ impl AsyncCx { Poll::Pending => {} } - let before = wasmtime_runtime::TlsRestore::take().map_err(Trap::from_runtime)?; + let before = wasmtime_runtime::TlsRestore::take().map_err(Trap::from_runtime_box)?; let res = (*suspend).suspend(()); - before.replace().map_err(Trap::from_runtime)?; + before.replace().map_err(Trap::from_runtime_box)?; res?; } }