summaryrefslogtreecommitdiff
path: root/core/shared_queue.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/shared_queue.rs')
-rw-r--r--core/shared_queue.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/shared_queue.rs b/core/shared_queue.rs
index 0d2fc15c3..d69284404 100644
--- a/core/shared_queue.rs
+++ b/core/shared_queue.rs
@@ -43,8 +43,7 @@ impl SharedQueue {
let mut buf = Vec::new();
buf.resize(HEAD_INIT + len, 0);
let buf = buf.into_boxed_slice();
- let buf =
- unsafe { v8::SharedArrayBuffer::new_backing_store_from_boxed_slice(buf) };
+ let buf = v8::SharedArrayBuffer::new_backing_store_from_boxed_slice(buf);
let mut q = Self {
buf: buf.make_shared(),
};