diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-05-08 14:37:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-08 14:37:42 +0200 |
commit | d5f39fd121b8f997dcfb360828f60cee47322ab3 (patch) | |
tree | 4eb4880060a861ac6ddfe27e5f62b8bc756b52b5 /core/ops_builtin.rs | |
parent | 4ed1428c3401c9e6dc4d737bd7c9a50840054696 (diff) |
cleanup(ops): remove unused ZeroCopyBuf arg-types (#10530)
Diffstat (limited to 'core/ops_builtin.rs')
-rw-r--r-- | core/ops_builtin.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/ops_builtin.rs b/core/ops_builtin.rs index 7160b408a..023edc60e 100644 --- a/core/ops_builtin.rs +++ b/core/ops_builtin.rs @@ -6,7 +6,6 @@ use crate::op_sync; use crate::resources::ResourceId; use crate::Extension; use crate::OpState; -use crate::ZeroCopyBuf; use std::io::{stderr, stdout, Write}; pub(crate) fn init_builtins() -> Extension { @@ -29,7 +28,7 @@ pub(crate) fn init_builtins() -> Extension { pub fn op_resources( state: &mut OpState, _args: (), - _zero_copy: Option<ZeroCopyBuf>, + _: (), ) -> Result<Vec<(ResourceId, String)>, AnyError> { let serialized_resources = state .resource_table @@ -43,7 +42,7 @@ pub fn op_resources( pub fn op_close( state: &mut OpState, rid: Option<ResourceId>, - _zero_copy: Option<ZeroCopyBuf>, + _: (), ) -> Result<(), AnyError> { // TODO(@AaronO): drop Option after improving type-strictness balance in serde_v8 let rid = rid.ok_or_else(|| type_error("missing or invalid `rid`"))?; @@ -59,7 +58,7 @@ pub fn op_close( pub fn op_print( _state: &mut OpState, args: (String, bool), - _zero_copy: Option<ZeroCopyBuf>, + _: (), ) -> Result<(), AnyError> { let (msg, is_err) = args; if is_err { |