From becbb56b19e96e4dd72b861217a855fba953d290 Mon Sep 17 00:00:00 2001 From: Valentin Anger Date: Mon, 1 Jun 2020 20:20:47 +0200 Subject: feat(core): Ops can take several zero copy buffers (#4788) --- core/zero_copy_buf.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'core/zero_copy_buf.rs') diff --git a/core/zero_copy_buf.rs b/core/zero_copy_buf.rs index b10c14045..25c468ffe 100644 --- a/core/zero_copy_buf.rs +++ b/core/zero_copy_buf.rs @@ -8,6 +8,7 @@ use std::ops::DerefMut; /// but the existence of a ZeroCopyBuf inhibits this until it is dropped. It /// behaves much like an Arc<[u8]>, although a ZeroCopyBuf currently can't be /// cloned. +#[derive(Clone)] pub struct ZeroCopyBuf { backing_store: v8::SharedRef, byte_offset: usize, -- cgit v1.2.3