diff --git a/src/connector/builder.rs b/src/connector/builder.rs index d0167f8..2e47df8 100644 --- a/src/connector/builder.rs +++ b/src/connector/builder.rs @@ -87,7 +87,7 @@ impl ConnectorBuilder { #[cfg(feature = "rustls-platform-verifier")] pub fn with_provider_and_platform_verifier( self, - provider: CryptoProvider, + provider: impl Into>, ) -> std::io::Result> { Ok(self.with_tls_config( ClientConfig::builder_with_provider(provider.into()) @@ -120,7 +120,7 @@ impl ConnectorBuilder { #[cfg(feature = "rustls-native-certs")] pub fn with_provider_and_native_roots( self, - provider: CryptoProvider, + provider: impl Into>, ) -> std::io::Result> { Ok(self.with_tls_config( ClientConfig::builder_with_provider(provider.into()) @@ -151,7 +151,7 @@ impl ConnectorBuilder { #[cfg(feature = "webpki-roots")] pub fn with_provider_and_webpki_roots( self, - provider: CryptoProvider, + provider: impl Into>, ) -> Result, rustls::Error> { Ok(self.with_tls_config( ClientConfig::builder_with_provider(provider.into())