summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-10 13:35:10 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-10 14:29:55 -0400
commit417ea7bb6d14ea18b9b4caefe1f4ca2b12216d3e (patch)
tree95c8bde38d91d200c0e6f992c82127cd1db6b5bd
parentc99207bf3976bfd3c5c3ef91d782c86f933977e6 (diff)
src/http.rs -> src/http_util.rs
So as not to conflict with http crate.
-rw-r--r--src/deno_dir.rs4
-rw-r--r--src/http_util.rs (renamed from src/http.rs)0
-rw-r--r--src/main.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/deno_dir.rs b/src/deno_dir.rs
index 1e369b40f..e8cc86b18 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
index 0d3189d27..0d3189d27 100644
--- a/src/http.rs
+++ b/src/http_util.rs
diff --git a/src/main.rs b/src/main.rs
index f6c85ef83..b84ee78d9 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;