diff --git a/src/deno_dir.rs b/src/deno_dir.rs index 1e369b40f8..e8cc86b186 100644 --- a/src/deno_dir.rs +++ b/src/deno_dir.rs @@ -4,7 +4,7 @@ use errors::DenoError; use errors::DenoResult; use errors::ErrorKind; use fs as deno_fs; -use http; +use http_util; use ring; use std; use std::fmt::Write; @@ -114,7 +114,7 @@ impl DenoDir { let src = if self.reload || !p.exists() { println!("Downloading {}", module_name); - let source = http::fetch_sync_string(module_name)?; + let source = http_util::fetch_sync_string(module_name)?; match p.parent() { Some(ref parent) => fs::create_dir_all(parent), None => Ok(()), diff --git a/src/http.rs b/src/http_util.rs similarity index 100% rename from src/http.rs rename to src/http_util.rs diff --git a/src/main.rs b/src/main.rs index f6c85ef831..b84ee78d96 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,7 +26,7 @@ mod deno_dir; mod errors; mod flags; mod fs; -mod http; +mod http_util; mod isolate; mod libdeno; pub mod ops;