diff --git a/src/connector.rs b/src/connector.rs index 712c32b..2951107 100644 --- a/src/connector.rs +++ b/src/connector.rs @@ -33,28 +33,6 @@ impl HttpsConnector { } } -impl fmt::Debug for HttpsConnector { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.debug_struct("HttpsConnector") - .field("force_https", &self.force_https) - .finish() - } -} - -impl From<(H, C)> for HttpsConnector -where - C: Into>, -{ - fn from((http, cfg): (H, C)) -> Self { - Self { - force_https: false, - http, - tls_config: cfg.into(), - override_server_name: None, - } - } -} - impl Service for HttpsConnector where T: Service, @@ -139,3 +117,25 @@ where } } } + +impl From<(H, C)> for HttpsConnector +where + C: Into>, +{ + fn from((http, cfg): (H, C)) -> Self { + Self { + force_https: false, + http, + tls_config: cfg.into(), + override_server_name: None, + } + } +} + +impl fmt::Debug for HttpsConnector { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + f.debug_struct("HttpsConnector") + .field("force_https", &self.force_https) + .finish() + } +}