From 2e48bedd0d030bbecdf2ccc5570ddfa6d075bbae Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Tue, 30 Nov 2021 01:20:06 +0000 Subject: [PATCH] impl default for connector service --- actix-tls/CHANGES.md | 3 ++- actix-tls/src/connect/connector.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/actix-tls/CHANGES.md b/actix-tls/CHANGES.md index e0035f37..709dfcc6 100644 --- a/actix-tls/CHANGES.md +++ b/actix-tls/CHANGES.md @@ -10,7 +10,8 @@ * Implement `Error` for `accept::TlsError` where both types also implement `Error`. [#422] * Implement `Default` for `connect::Resolver`. [#422] * Implement `Error` for `connect::ConnectError`. [#422] -* Implement `Default` for `tcp::{TcpConnector, TcpConnectorService}`. [#423] +* Implement `Default` for `connect::tcp::{TcpConnector, TcpConnectorService}`. [#423] +* Implement `Default` for `connect::ConnectorService`. [#423] ### Changed * The crate's default features flags no longer include `uri`. [#422] diff --git a/actix-tls/src/connect/connector.rs b/actix-tls/src/connect/connector.rs index 94d72fe8..a4276548 100644 --- a/actix-tls/src/connect/connector.rs +++ b/actix-tls/src/connect/connector.rs @@ -57,7 +57,7 @@ impl ServiceFactory> for Connector { /// /// Service implementation receives connection information, resolves DNS if required, and returns /// a TCP stream. -#[derive(Clone)] +#[derive(Clone, Default)] pub struct ConnectorService { tcp: TcpConnectorService, resolver: ResolverService,