From c42450feff7b64f4e6b6d0402b5469897734d57c Mon Sep 17 00:00:00 2001 From: Ferris Tseng Date: Sat, 16 May 2020 12:25:34 -0400 Subject: formatting --- ipfs-api/src/client.rs | 8 ++------ 1 file 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::().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::(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) }; -- cgit v1.2.3