1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-09-01 02:36:59 +02:00

add default type parameter

This commit is contained in:
Nikolay Kim
2019-03-11 13:48:55 -07:00
parent ad50595ece
commit 5567fb41d2
3 changed files with 3 additions and 3 deletions

View File

@@ -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<T, P> {
pub struct RustlsAcceptor<T, P = ()> {
config: Arc<ServerConfig>,
io: PhantomData<(T, P)>,
}