summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerris Tseng <ferris@navapbc.com>2020-05-16 12:25:34 -0400
committerFerris Tseng <ferris@navapbc.com>2020-05-16 12:25:34 -0400
commitc42450feff7b64f4e6b6d0402b5469897734d57c (patch)
treee1f4ce3e0ef6b343e52e0ab1328e8b682a5738c7
parentb263290045ed63830d839393f2d148edf331fa42 (diff)
downloadrust-ipfs-api-c42450feff7b64f4e6b6d0402b5469897734d57c.tar.gz
rust-ipfs-api-c42450feff7b64f4e6b6d0402b5469897734d57c.tar.xz
formatting
-rw-r--r--ipfs-api/src/client.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/ipfs-api/src/client.rs b/ipfs-api/src/client.rs
index 67c5d3d..7716136 100644
--- a/ipfs-api/src/client.rs
+++ b/ipfs-api/src/client.rs
@@ -144,9 +144,7 @@ impl IpfsClient {
#[cfg(feature = "hyper")]
{
url.parse::<Uri>().map_err(From::from).and_then(move |url| {
- let builder = http::Request::builder()
- .method("POST")
- .uri(url);
+ let builder = http::Request::builder().method("POST").uri(url);
let req = if let Some(form) = form {
form.set_body_convert::<hyper::Body, multipart::Body>(builder)
@@ -160,9 +158,7 @@ impl IpfsClient {
#[cfg(feature = "actix")]
{
let req = if let Some(form) = form {
- self.client
- .post(url)
- .content_type(form.content_type())
+ self.client.post(url).content_type(form.content_type())
} else {
self.client.post(url)
};