diff options
| author | Andy Hayden <andyhayden1@gmail.com> | 2019-01-13 22:30:38 -0800 |
|---|---|---|
| committer | Bert Belder <bertbelder@gmail.com> | 2019-01-14 22:30:04 +0100 |
| commit | 526fdac053f125b641b07b78b81ffa9962622e09 (patch) | |
| tree | ec884949a6b43c109a4509de21f6f6a10d15ef38 /src/isolate.rs | |
| parent | 7d08db2191526524bf9a7a45b97952c533a6aa74 (diff) | |
Update to rust 2018 edition
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 = |
