From a73600fbcd5016d894c2999945993789abe31c5e Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 13 Mar 2019 15:51:21 -0700 Subject: [PATCH] remove generic E --- actix-connect/src/ssl/openssl.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/actix-connect/src/ssl/openssl.rs b/actix-connect/src/ssl/openssl.rs index daaf05a7..15ebf2dc 100644 --- a/actix-connect/src/ssl/openssl.rs +++ b/actix-connect/src/ssl/openssl.rs @@ -10,12 +10,12 @@ use tokio_openssl::{ConnectAsync, SslConnectorExt, SslStream}; use crate::{Address, Connection}; /// Openssl connector factory -pub struct OpensslConnector { +pub struct OpensslConnector { connector: SslConnector, - _t: PhantomData<(T, U, E)>, + _t: PhantomData<(T, U)>, } -impl OpensslConnector { +impl OpensslConnector { pub fn new(connector: SslConnector) -> Self { OpensslConnector { connector, @@ -24,7 +24,7 @@ impl OpensslConnector { } } -impl OpensslConnector +impl OpensslConnector where T: Address, U: AsyncRead + AsyncWrite + fmt::Debug, @@ -43,7 +43,7 @@ where } } -impl Clone for OpensslConnector { +impl Clone for OpensslConnector { fn clone(&self) -> Self { Self { connector: self.connector.clone(), @@ -52,7 +52,7 @@ impl Clone for OpensslConnector { } } -impl NewService<()> for OpensslConnector +impl NewService<()> for OpensslConnector where U: AsyncRead + AsyncWrite + fmt::Debug, { @@ -60,7 +60,7 @@ where type Response = Connection>; type Error = HandshakeError; type Service = OpensslConnectorService; - type InitError = E; + type InitError = (); type Future = FutureResult; fn new_service(&self, _: &()) -> Self::Future {