From 0d5646a8b6f870b3182033313b644c613a0f667f Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sun, 8 Mar 2020 00:52:39 +0900 Subject: [PATCH] Run rustfmt --- actix-http/src/client/connector.rs | 10 +++++----- actix-http/src/h1/dispatcher.rs | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/actix-http/src/client/connector.rs b/actix-http/src/client/connector.rs index adb88bbed..e1aed6382 100644 --- a/actix-http/src/client/connector.rs +++ b/actix-http/src/client/connector.rs @@ -78,8 +78,7 @@ impl Connector<(), ()> { // Build Ssl connector with openssl, based on supplied alpn protocols #[cfg(feature = "openssl")] - fn build_ssl(protocols: Vec>) -> SslConnector - { + fn build_ssl(protocols: Vec>) -> SslConnector { use actix_connect::ssl::openssl::SslMethod; use bytes::{BufMut, BytesMut}; @@ -98,8 +97,7 @@ impl Connector<(), ()> { // Build Ssl connector with rustls, based on supplied alpn protocols #[cfg(all(not(feature = "openssl"), feature = "rustls"))] - fn build_ssl(protocols: Vec>) -> SslConnector - { + fn build_ssl(protocols: Vec>) -> SslConnector { let mut config = ClientConfig::new(); config.set_protocols(&protocols); config @@ -169,7 +167,9 @@ where let versions = match val { http::Version::HTTP_11 => vec![b"http/1.1".to_vec()], http::Version::HTTP_2 => vec![b"h2".to_vec(), b"http/1.1".to_vec()], - _ => unimplemented!("actix-http:client: supported versions http/1.1, http/2"), + _ => { + unimplemented!("actix-http:client: supported versions http/1.1, http/2") + } }; self.ssl = Connector::build_ssl(versions); self diff --git a/actix-http/src/h1/dispatcher.rs b/actix-http/src/h1/dispatcher.rs index ffdcd8d9b..ec01261e5 100644 --- a/actix-http/src/h1/dispatcher.rs +++ b/actix-http/src/h1/dispatcher.rs @@ -395,7 +395,8 @@ where Poll::Ready(Ok(req)) => { self.as_mut().send_continue(); this = self.as_mut().project(); - this.state.set(State::ServiceCall(Box::pin(this.service.call(req)))); + this.state + .set(State::ServiceCall(Box::pin(this.service.call(req)))); continue; } Poll::Ready(Err(e)) => {