diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-07-31 17:11:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-31 17:11:37 -0400 |
commit | 3971dcfe10b94e901a224b5328a9dafd1e2ecc08 (patch) | |
tree | e347644a90094774e56e9315119c31594ca60796 /cli/http_util.rs | |
parent | b3541c38f5672ffb4a29d66dca19d88b9ecae478 (diff) |
Use system rustfmt instead of fixed binary (#2701)
Diffstat (limited to 'cli/http_util.rs')
-rw-r--r-- | cli/http_util.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cli/http_util.rs b/cli/http_util.rs index 16c419305..511c67df0 100644 --- a/cli/http_util.rs +++ b/cli/http_util.rs @@ -170,12 +170,14 @@ pub fn fetch_string( DenoError::new( deno_error::ErrorKind::NotFound, "module not found".to_string(), - ).into(), + ) + .into(), ); } Ok(Loop::Break(response)) }) - }).and_then(|response| { + }) + .and_then(|response| { let content_type = response .headers() .get(CONTENT_TYPE) @@ -186,7 +188,8 @@ pub fn fetch_string( .map(|body| String::from_utf8(body.to_vec()).unwrap()) .map_err(ErrBox::from); body.join(future::ok(content_type)) - }).and_then(|(body_string, maybe_content_type)| { + }) + .and_then(|(body_string, maybe_content_type)| { future::ok((body_string, maybe_content_type.unwrap())) }) } |