summaryrefslogtreecommitdiff
path: root/cli/ops/compiler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/ops/compiler.rs')
-rw-r--r--cli/ops/compiler.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/ops/compiler.rs b/cli/ops/compiler.rs
index 5af2f5eb0..d41369855 100644
--- a/cli/ops/compiler.rs
+++ b/cli/ops/compiler.rs
@@ -2,7 +2,6 @@
use super::dispatch_json::{JsonOp, Value};
use crate::op_error::OpError;
use crate::ops::json_op;
-use crate::ops::JsonOpDispatcher;
use crate::state::State;
use deno_core::CoreIsolate;
use deno_core::CoreIsolateState;
@@ -32,7 +31,11 @@ pub fn init(
pub fn compiler_op<D>(
response: Arc<Mutex<Option<String>>>,
dispatcher: D,
-) -> impl JsonOpDispatcher
+) -> impl Fn(
+ &mut deno_core::CoreIsolateState,
+ Value,
+ &mut [ZeroCopyBuf],
+) -> Result<JsonOp, OpError>
where
D: Fn(
Arc<Mutex<Option<String>>>,