impl default for connector service

This commit is contained in:
Rob Ede 2021-11-30 01:20:06 +00:00
parent c8c7358a08
commit 2e48bedd0d
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 3 additions and 2 deletions

View File

@ -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]

View File

@ -57,7 +57,7 @@ impl<R: Host> ServiceFactory<ConnectInfo<R>> 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,