Make PenderContext opaque

This commit is contained in:
Dániel Buga
2023-08-14 15:16:40 +02:00
parent f6007869bf
commit 4c4b12c307
6 changed files with 30 additions and 9 deletions

View File

@ -49,7 +49,7 @@ mod thread {
pub fn new() -> Self {
let ctx = &*Box::leak(Box::new(WasmContext::new()));
Self {
inner: raw::Executor::new(ctx as *const _ as usize),
inner: raw::Executor::new(unsafe { core::mem::transmute(ctx) }),
ctx,
not_send: PhantomData,
}