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/ops/dispatch_json.rs | |
| parent | 86726f88f1b6fd168fbd5b0d7e01b027cfc268ac (diff) | |
s/PinnedBuf/ZeroCopyBuf (#3782)
Diffstat (limited to 'cli/ops/dispatch_json.rs')
| -rw-r--r-- | cli/ops/dispatch_json.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/ops/dispatch_json.rs b/cli/ops/dispatch_json.rs index 87cfff51d..0b053b1e8 100644 --- a/cli/ops/dispatch_json.rs +++ b/cli/ops/dispatch_json.rs @@ -48,11 +48,11 @@ struct AsyncArgs { promise_id: Option<u64>, } -pub fn json_op<D>(d: D) -> impl Fn(&[u8], Option<PinnedBuf>) -> CoreOp +pub fn json_op<D>(d: D) -> impl Fn(&[u8], Option<ZeroCopyBuf>) -> CoreOp where - D: Fn(Value, Option<PinnedBuf>) -> Result<JsonOp, ErrBox>, + D: Fn(Value, Option<ZeroCopyBuf>) -> Result<JsonOp, ErrBox>, { - move |control: &[u8], zero_copy: Option<PinnedBuf>| { + move |control: &[u8], zero_copy: Option<ZeroCopyBuf>| { let async_args: AsyncArgs = match serde_json::from_slice(control) { Ok(args) => args, Err(e) => { |
