Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kworr committed Aug 23, 2024
1 parent 2900237 commit d3a2310
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/src/connector/hyper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,12 @@ impl<C: Connect + std::fmt::Debug + 'static + Clone + Send + Sync> Connector for

pub fn default_connector() -> Result<Box<dyn Connector>, 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();
Expand Down

0 comments on commit d3a2310

Please sign in to comment.