summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/ffi/callback.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ffi/callback.rs b/ext/ffi/callback.rs
index d1abd0c70..2d2cf491b 100644
--- a/ext/ffi/callback.rs
+++ b/ext/ffi/callback.rs
@@ -96,7 +96,7 @@ struct CallbackInfo {
pub async_work_sender: mpsc::UnboundedSender<PendingFfiAsyncWork>,
pub callback: NonNull<v8::Function>,
pub context: NonNull<v8::Context>,
- pub parameters: Vec<NativeType>,
+ pub parameters: Box<[NativeType]>,
pub result: NativeType,
pub thread_id: u32,
pub waker: Option<Waker>,
@@ -578,7 +578,7 @@ where
async_work_sender,
callback,
context,
- parameters: args.parameters.clone(),
+ parameters: args.parameters.clone().into(),
result: args.result.clone(),
thread_id,
waker: None,