diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-02-25 09:14:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 09:14:27 -0500 |
commit | 91b606aaae23bcb790b55adc5fe70a182a37d564 (patch) | |
tree | 16b56a21ffcb3991569eda984fbd14073bdbd3ae /cli/ops/files.rs | |
parent | 805992b14a65a6dbfb857dea6d9b657477de043d (diff) |
Clean up how we use opIds (#4118)
Diffstat (limited to 'cli/ops/files.rs')
-rw-r--r-- | cli/ops/files.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cli/ops/files.rs b/cli/ops/files.rs index 2fc41bc34..4bf8b1688 100644 --- a/cli/ops/files.rs +++ b/cli/ops/files.rs @@ -3,7 +3,6 @@ use super::dispatch_json::{Deserialize, JsonOp, Value}; use super::io::StreamResource; use crate::fs as deno_fs; use crate::op_error::OpError; -use crate::ops::json_op; use crate::state::State; use deno_core::*; use futures::future::FutureExt; @@ -14,9 +13,9 @@ use std::path::Path; use tokio; pub fn init(i: &mut Isolate, s: &State) { - i.register_op("open", s.core_op(json_op(s.stateful_op(op_open)))); - i.register_op("close", s.core_op(json_op(s.stateful_op(op_close)))); - i.register_op("seek", s.core_op(json_op(s.stateful_op(op_seek)))); + i.register_op("op_open", s.stateful_json_op(op_open)); + i.register_op("op_close", s.stateful_json_op(op_close)); + i.register_op("op_seek", s.stateful_json_op(op_seek)); } #[derive(Deserialize)] |