summaryrefslogtreecommitdiff
path: root/cli/ops/plugin.rs
diff options
context:
space:
mode:
authorGurwinder Singh <vargwin@gmail.com>2020-07-14 23:52:02 +0530
committerGitHub <noreply@github.com>2020-07-14 14:22:02 -0400
commitf83d672ffad7afb1473bd4f9b9c645539064c620 (patch)
treef8a0b30ffd79965b7672c1c130af08dd798b750e /cli/ops/plugin.rs
parent7be29fab8d4267bca9c8f0020f634fe5f1bd3caa (diff)
refactor: new trait JsonOpDispatcher (#6742)
Diffstat (limited to 'cli/ops/plugin.rs')
-rw-r--r--cli/ops/plugin.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/cli/ops/plugin.rs b/cli/ops/plugin.rs
index ba105cff8..3edcaa962 100644
--- a/cli/ops/plugin.rs
+++ b/cli/ops/plugin.rs
@@ -3,7 +3,6 @@ use crate::op_error::OpError;
use crate::ops::dispatch_json::Deserialize;
use crate::ops::dispatch_json::JsonOp;
use crate::ops::dispatch_json::Value;
-use crate::ops::json_op;
use crate::state::State;
use deno_core::plugin_api;
use deno_core::CoreIsolate;
@@ -21,10 +20,7 @@ use std::task::Context;
use std::task::Poll;
pub fn init(i: &mut CoreIsolate, s: &State) {
- i.register_op(
- "op_open_plugin",
- s.core_op(json_op(s.stateful_op2(op_open_plugin))),
- );
+ i.register_op("op_open_plugin", s.stateful_json_op2(op_open_plugin));
}
#[derive(Deserialize)]