From d3a23108ebf0ae2097fda7ea1c6d6abbe4e73f3c Mon Sep 17 00:00:00 2001 From: Volodymyr Kostyrko Date: Fri, 23 Aug 2024 13:15:33 +0300 Subject: [PATCH] fix fmt --- lib/src/connector/hyper.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/src/connector/hyper.rs b/lib/src/connector/hyper.rs index 835b3b90f0..b9a6ad575e 100644 --- a/lib/src/connector/hyper.rs +++ b/lib/src/connector/hyper.rs @@ -159,7 +159,12 @@ impl Connector for pub fn default_connector() -> Result, Error> { #[cfg(feature = "rustls")] - let connector = HttpsConnectorBuilder::new().with_native_roots()?.https_only().enable_http1().enable_http2().build(); + let connector = HttpsConnectorBuilder::new() + .with_native_roots()? + .https_only() + .enable_http1() + .enable_http2() + .build(); #[cfg(feature = "openssl")] let connector = HttpsConnector::new();