mirror of https://github.com/fafhrd91/actix-net
fmt
This commit is contained in:
parent
976c660f1f
commit
32d034bc2b
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
[#429]: https://github.com/actix/actix-net/pull/429
|
[#429]: https://github.com/actix/actix-net/pull/429
|
||||||
|
|
||||||
|
|
||||||
## 3.0.0-rc.1 - 2021-11-29
|
## 3.0.0-rc.1 - 2021-11-29
|
||||||
### Added
|
### Added
|
||||||
- Derive `Debug` for `connect::Connection`. [#422]
|
- Derive `Debug` for `connect::Connection`. [#422]
|
||||||
|
|
|
@ -10,7 +10,6 @@ use std::{
|
||||||
time::Duration,
|
time::Duration,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::impl_more;
|
|
||||||
use actix_codec::{AsyncRead, AsyncWrite, ReadBuf};
|
use actix_codec::{AsyncRead, AsyncWrite, ReadBuf};
|
||||||
use actix_rt::{
|
use actix_rt::{
|
||||||
net::{ActixStream, Ready},
|
net::{ActixStream, Ready},
|
||||||
|
@ -25,6 +24,7 @@ use futures_core::future::LocalBoxFuture;
|
||||||
use tokio_native_tls::{native_tls::Error, TlsAcceptor};
|
use tokio_native_tls::{native_tls::Error, TlsAcceptor};
|
||||||
|
|
||||||
use super::{TlsError, DEFAULT_TLS_HANDSHAKE_TIMEOUT, MAX_CONN_COUNTER};
|
use super::{TlsError, DEFAULT_TLS_HANDSHAKE_TIMEOUT, MAX_CONN_COUNTER};
|
||||||
|
use crate::impl_more;
|
||||||
|
|
||||||
pub mod reexports {
|
pub mod reexports {
|
||||||
//! Re-exports from `native-tls` that are useful for acceptors.
|
//! Re-exports from `native-tls` that are useful for acceptors.
|
||||||
|
|
|
@ -36,8 +36,8 @@ impl fmt::Display for ConnectError {
|
||||||
impl Error for ConnectError {
|
impl Error for ConnectError {
|
||||||
fn source(&self) -> Option<&(dyn Error + 'static)> {
|
fn source(&self) -> Option<&(dyn Error + 'static)> {
|
||||||
match self {
|
match self {
|
||||||
ConnectError::Resolver(err) => Some(&**err),
|
Self::Resolver(err) => Some(&**err),
|
||||||
ConnectError::Io(err) => Some(err),
|
Self::Io(err) => Some(err),
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue