diff --git a/loader/src/main.rs b/loader/src/main.rs index b7eae1c..d4ad92b 100644 --- a/loader/src/main.rs +++ b/loader/src/main.rs @@ -11,12 +11,10 @@ async fn main() -> Result<()> { let (tx,rx) = oneshot::channel(); let func: Symbol) -> Pin + Send>>> = unsafe {lib.get(b"add_wrapper")?}; - let func = unsafe{func.into_raw()}; + let fut = unsafe{func(12,54, rx)}; - let out = tokio::spawn(async move { - fut.await - }); + let out = tokio::spawn(fut); tx.send(8).unwrap();