diff options
Diffstat (limited to 'src/isolate.rs')
| -rw-r--r-- | src/isolate.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/isolate.rs b/src/isolate.rs index 03b73075e..b0bd085de 100644 --- a/src/isolate.rs +++ b/src/isolate.rs @@ -3,16 +3,17 @@ // TODO Currently this module uses Tokio, but it would be nice if they were // decoupled. -use compiler::compile_sync; -use compiler::CodeFetchOutput; -use deno_dir; -use errors::DenoError; -use errors::DenoResult; -use flags; -use js_errors::JSError; -use libdeno; -use msg; -use permissions::DenoPermissions; +use crate::compiler::compile_sync; +use crate::compiler::CodeFetchOutput; +use crate::deno_dir; +use crate::errors::DenoError; +use crate::errors::DenoResult; +use crate::flags; +use crate::js_errors::JSError; +use crate::libdeno; +use crate::msg; +use crate::permissions::DenoPermissions; +use crate::tokio_util; use futures::sync::mpsc as async_mpsc; use futures::Future; @@ -30,7 +31,6 @@ use std::sync::Mutex; use std::time::Duration; use std::time::Instant; use tokio; -use tokio_util; // Buf represents a byte array returned from a "Op". // The message might be empty (which will be translated into a null object on @@ -40,7 +40,7 @@ pub type Buf = Box<[u8]>; // JS promises in Deno map onto a specific Future // which yields either a DenoError or a byte array. -pub type Op = Future<Item = Buf, Error = DenoError> + Send; +pub type Op = dyn Future<Item = Buf, Error = DenoError> + Send; // Returns (is_sync, op) pub type Dispatch = |
