diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-01-24 15:10:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-24 15:10:49 -0500 |
commit | 5e32c5ea448563be91017d71bab060c8a6bd90fe (patch) | |
tree | aa9e731b9f4b9f6bc28beab23e7575d43bc14653 /cli/build.rs | |
parent | 86726f88f1b6fd168fbd5b0d7e01b027cfc268ac (diff) |
s/PinnedBuf/ZeroCopyBuf (#3782)
Diffstat (limited to 'cli/build.rs')
-rw-r--r-- | cli/build.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/build.rs b/cli/build.rs index f8e348f52..b57b86b91 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -2,16 +2,16 @@ use deno_core::CoreOp; use deno_core::Isolate; use deno_core::Op; -use deno_core::PinnedBuf; use deno_core::StartupData; +use deno_core::ZeroCopyBuf; use std::collections::HashMap; use std::env; use std::path::PathBuf; fn op_fetch_asset( custom_assets: HashMap<String, PathBuf>, -) -> impl Fn(&[u8], Option<PinnedBuf>) -> CoreOp { - move |control: &[u8], zero_copy_buf: Option<PinnedBuf>| -> CoreOp { +) -> impl Fn(&[u8], Option<ZeroCopyBuf>) -> CoreOp { + move |control: &[u8], zero_copy_buf: Option<ZeroCopyBuf>| -> CoreOp { assert!(zero_copy_buf.is_none()); // zero_copy_buf unused in this op. let custom_assets = custom_assets.clone(); let name = std::str::from_utf8(control).unwrap(); |