Fix async build

This commit is contained in:
Alex Crichton
2021-09-02 07:38:29 -07:00
parent 6b5e21d80e
commit 37b9fc5333

View File

@@ -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?;
}
}