diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/errors.rs | 4 | ||||
-rw-r--r-- | src/handlers.rs | 2 | ||||
-rw-r--r-- | src/main.rs | 2 | ||||
-rw-r--r-- | src/msg.fbs | 2 |
4 files changed, 3 insertions, 7 deletions
diff --git a/src/errors.rs b/src/errors.rs index 2fcb26193..1bedf8d40 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,13 +1,11 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. use hyper; -use msg_generated::deno as msg; +pub use msg::ErrorKind; use std; use std::fmt; use std::io; use url; -pub use self::msg::ErrorKind; - pub type DenoResult<T> = std::result::Result<T, DenoError>; #[derive(Debug)] diff --git a/src/handlers.rs b/src/handlers.rs index 477d34774..6977f100e 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -11,7 +11,7 @@ use hyper::rt::{Future, Stream}; use hyper::Client; use libdeno; use libdeno::{deno_buf, DenoC}; -use msg_generated::deno as msg; +use msg; use std; use std::fs; use std::path::Path; diff --git a/src/main.rs b/src/main.rs index ab9a72f79..68e680c71 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,7 @@ extern crate flatbuffers; extern crate futures; extern crate hyper; extern crate libc; -extern crate msg_rs as msg_generated; +extern crate msg_rs as msg; extern crate rand; extern crate tempfile; extern crate tokio; diff --git a/src/msg.fbs b/src/msg.fbs index 4afe947d5..5d55253b9 100644 --- a/src/msg.fbs +++ b/src/msg.fbs @@ -1,5 +1,3 @@ -namespace deno; - union Any { Start, StartRes, |