From 5e32c5ea448563be91017d71bab060c8a6bd90fe Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 24 Jan 2020 15:10:49 -0500 Subject: s/PinnedBuf/ZeroCopyBuf (#3782) --- test_plugin/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test_plugin/src') diff --git a/test_plugin/src/lib.rs b/test_plugin/src/lib.rs index 95cd6e9ca..922f33682 100644 --- a/test_plugin/src/lib.rs +++ b/test_plugin/src/lib.rs @@ -5,7 +5,7 @@ extern crate futures; use deno_core::CoreOp; use deno_core::Op; use deno_core::PluginInitContext; -use deno_core::{Buf, PinnedBuf}; +use deno_core::{Buf, ZeroCopyBuf}; use futures::future::FutureExt; fn init(context: &mut dyn PluginInitContext) { @@ -14,7 +14,7 @@ fn init(context: &mut dyn PluginInitContext) { } init_fn!(init); -pub fn op_test_sync(data: &[u8], zero_copy: Option) -> CoreOp { +pub fn op_test_sync(data: &[u8], zero_copy: Option) -> CoreOp { if let Some(buf) = zero_copy { let data_str = std::str::from_utf8(&data[..]).unwrap(); let buf_str = std::str::from_utf8(&buf[..]).unwrap(); @@ -28,7 +28,7 @@ pub fn op_test_sync(data: &[u8], zero_copy: Option) -> CoreOp { Op::Sync(result_box) } -pub fn op_test_async(data: &[u8], zero_copy: Option) -> CoreOp { +pub fn op_test_async(data: &[u8], zero_copy: Option) -> CoreOp { let data_str = std::str::from_utf8(&data[..]).unwrap().to_string(); let fut = async move { if let Some(buf) = zero_copy { -- cgit v1.2.3