summaryrefslogtreecommitdiff
path: root/ext/ffi/repr.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-10-28 00:02:57 -0700
committerGitHub <noreply@github.com>2023-10-28 10:02:57 +0300
commit5b2d9fb8d4f13e6383a5eceb2227305445416298 (patch)
tree8fb2788a9ebfa8c00783e5606df0813e4c7abf23 /ext/ffi/repr.rs
parentdaf9756127a92f6682c4fdbc7d7047eb3a1586b6 (diff)
fix(ext/ffi): use anybuffer for op_ffi_buf_copy_into (#21006)
Fixes https://github.com/denoland/deno/issues/21005
Diffstat (limited to 'ext/ffi/repr.rs')
-rw-r--r--ext/ffi/repr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ffi/repr.rs b/ext/ffi/repr.rs
index 201df343e..426affdb5 100644
--- a/ext/ffi/repr.rs
+++ b/ext/ffi/repr.rs
@@ -177,7 +177,7 @@ pub fn op_ffi_buf_copy_into<FP>(
state: &mut OpState,
src: *mut c_void,
#[number] offset: isize,
- #[buffer] dst: &mut [u8],
+ #[anybuffer] dst: &mut [u8],
#[number] len: usize,
) -> Result<(), AnyError>
where