From 526fdac053f125b641b07b78b81ffa9962622e09 Mon Sep 17 00:00:00 2001 From: Andy Hayden Date: Sun, 13 Jan 2019 22:30:38 -0800 Subject: Update to rust 2018 edition --- src/isolate.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/isolate.rs') 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 + Send; +pub type Op = dyn Future + Send; // Returns (is_sync, op) pub type Dispatch = -- cgit v1.2.3