diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-04-23 05:51:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 11:51:07 +0200 |
commit | d8711155ca20fb2907beed304557d0815ac56452 (patch) | |
tree | 410c23ed6d3e520a6b335b02577ad0b29b707cf4 /cli/ops/fs_events.rs | |
parent | 10a174834e6e59ea055d6098a07b82a3854a2db9 (diff) |
Rename deno_core::Isolate to deno_core::CoreIsolate (#4851)
Diffstat (limited to 'cli/ops/fs_events.rs')
-rw-r--r-- | cli/ops/fs_events.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cli/ops/fs_events.rs b/cli/ops/fs_events.rs index 0a6fee8ea..56ed556f4 100644 --- a/cli/ops/fs_events.rs +++ b/cli/ops/fs_events.rs @@ -2,7 +2,9 @@ use super::dispatch_json::{Deserialize, JsonOp, Value}; use crate::op_error::OpError; use crate::state::State; -use deno_core::*; +use deno_core::CoreIsolate; +use deno_core::ErrBox; +use deno_core::ZeroCopyBuf; use futures::future::poll_fn; use futures::future::FutureExt; use notify::event::Event as NotifyEvent; @@ -16,7 +18,7 @@ use std::convert::From; use std::path::PathBuf; use tokio::sync::mpsc; -pub fn init(i: &mut Isolate, s: &State) { +pub fn init(i: &mut CoreIsolate, s: &State) { i.register_op("op_fs_events_open", s.stateful_json_op2(op_fs_events_open)); i.register_op("op_fs_events_poll", s.stateful_json_op2(op_fs_events_poll)); } @@ -60,7 +62,7 @@ impl From<NotifyEvent> for FsEvent { } pub fn op_fs_events_open( - isolate: &mut deno_core::Isolate, + isolate: &mut CoreIsolate, state: &State, args: Value, _zero_copy: Option<ZeroCopyBuf>, @@ -98,7 +100,7 @@ pub fn op_fs_events_open( } pub fn op_fs_events_poll( - isolate: &mut deno_core::Isolate, + isolate: &mut CoreIsolate, _state: &State, args: Value, _zero_copy: Option<ZeroCopyBuf>, |