From 5567fb41d20944b59088fffb6d697c8d8f804ea4 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 11 Mar 2019 13:48:55 -0700 Subject: [PATCH] add default type parameter --- actix-server/src/ssl/nativetls.rs | 2 +- actix-server/src/ssl/openssl.rs | 2 +- actix-server/src/ssl/rustls.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/actix-server/src/ssl/nativetls.rs b/actix-server/src/ssl/nativetls.rs index 22d4bc56..62b8f4c7 100644 --- a/actix-server/src/ssl/nativetls.rs +++ b/actix-server/src/ssl/nativetls.rs @@ -13,7 +13,7 @@ use crate::{Io, Protocol, ServerConfig}; /// Support `SSL` connections via native-tls package /// /// `tls` feature enables `NativeTlsAcceptor` type -pub struct NativeTlsAcceptor { +pub struct NativeTlsAcceptor { acceptor: TlsAcceptor, io: PhantomData<(T, P)>, } diff --git a/actix-server/src/ssl/openssl.rs b/actix-server/src/ssl/openssl.rs index 62141be5..23ec1531 100644 --- a/actix-server/src/ssl/openssl.rs +++ b/actix-server/src/ssl/openssl.rs @@ -13,7 +13,7 @@ use crate::{Io, Protocol, ServerConfig}; /// Support `SSL` connections via openssl package /// /// `ssl` feature enables `OpensslAcceptor` type -pub struct OpensslAcceptor { +pub struct OpensslAcceptor { acceptor: SslAcceptor, io: PhantomData<(T, P)>, } diff --git a/actix-server/src/ssl/rustls.rs b/actix-server/src/ssl/rustls.rs index bd85ffe5..11bca355 100644 --- a/actix-server/src/ssl/rustls.rs +++ b/actix-server/src/ssl/rustls.rs @@ -15,7 +15,7 @@ use crate::{Io, Protocol, ServerConfig as SrvConfig}; /// Support `SSL` connections via rustls package /// /// `rust-tls` feature enables `RustlsAcceptor` type -pub struct RustlsAcceptor { +pub struct RustlsAcceptor { config: Arc, io: PhantomData<(T, P)>, }