From 32d034bc2bee634a89745398b9ab38db23fbbb75 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Fri, 28 Jan 2022 21:29:56 +0000 Subject: [PATCH] fmt --- actix-tls/CHANGES.md | 1 + actix-tls/src/accept/native_tls.rs | 2 +- actix-tls/src/connect/error.rs | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/actix-tls/CHANGES.md b/actix-tls/CHANGES.md index 02db1c55..1982b70c 100644 --- a/actix-tls/CHANGES.md +++ b/actix-tls/CHANGES.md @@ -16,6 +16,7 @@ [#429]: https://github.com/actix/actix-net/pull/429 + ## 3.0.0-rc.1 - 2021-11-29 ### Added - Derive `Debug` for `connect::Connection`. [#422] diff --git a/actix-tls/src/accept/native_tls.rs b/actix-tls/src/accept/native_tls.rs index a4c6077e..b22c1ef2 100644 --- a/actix-tls/src/accept/native_tls.rs +++ b/actix-tls/src/accept/native_tls.rs @@ -10,7 +10,6 @@ use std::{ time::Duration, }; -use crate::impl_more; use actix_codec::{AsyncRead, AsyncWrite, ReadBuf}; use actix_rt::{ net::{ActixStream, Ready}, @@ -25,6 +24,7 @@ use futures_core::future::LocalBoxFuture; use tokio_native_tls::{native_tls::Error, TlsAcceptor}; use super::{TlsError, DEFAULT_TLS_HANDSHAKE_TIMEOUT, MAX_CONN_COUNTER}; +use crate::impl_more; pub mod reexports { //! Re-exports from `native-tls` that are useful for acceptors. diff --git a/actix-tls/src/connect/error.rs b/actix-tls/src/connect/error.rs index 3f89c3e6..b495757e 100644 --- a/actix-tls/src/connect/error.rs +++ b/actix-tls/src/connect/error.rs @@ -36,8 +36,8 @@ impl fmt::Display for ConnectError { impl Error for ConnectError { fn source(&self) -> Option<&(dyn Error + 'static)> { match self { - ConnectError::Resolver(err) => Some(&**err), - ConnectError::Io(err) => Some(err), + Self::Resolver(err) => Some(&**err), + Self::Io(err) => Some(err), _ => None, } }