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) --- deno_typescript/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'deno_typescript/lib.rs') diff --git a/deno_typescript/lib.rs b/deno_typescript/lib.rs index 8133a2886..a903b7c34 100644 --- a/deno_typescript/lib.rs +++ b/deno_typescript/lib.rs @@ -12,8 +12,8 @@ use deno_core::CoreOp; use deno_core::ErrBox; use deno_core::Isolate; use deno_core::ModuleSpecifier; -use deno_core::PinnedBuf; use deno_core::StartupData; +use deno_core::ZeroCopyBuf; pub use ops::EmitResult; use ops::WrittenFile; use std::fs; @@ -45,11 +45,11 @@ pub struct TSState { fn compiler_op( ts_state: Arc>, dispatcher: D, -) -> impl Fn(&[u8], Option) -> CoreOp +) -> impl Fn(&[u8], Option) -> CoreOp where D: Fn(&mut TSState, &[u8]) -> CoreOp, { - move |control: &[u8], zero_copy_buf: Option| -> CoreOp { + move |control: &[u8], zero_copy_buf: Option| -> CoreOp { assert!(zero_copy_buf.is_none()); // zero_copy_buf unused in compiler. let mut s = ts_state.lock().unwrap(); dispatcher(&mut s, control) -- cgit v1.2.3