From 7908311846f90dec1179c92449cfe86631d854ad Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1729@users.noreply.github.com> Date: Wed, 11 Oct 2023 16:48:51 +0200 Subject: [PATCH] revert --- core/src/smtp/connect.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/smtp/connect.rs b/core/src/smtp/connect.rs index 3c695175b..3df31d921 100644 --- a/core/src/smtp/connect.rs +++ b/core/src/smtp/connect.rs @@ -70,9 +70,9 @@ async fn connect_to_host( // hostname verification fails if it ends with '.', for example, using // SOCKS5 proxies we can `io: incomplete` error. - let host: String = host.trim_end_matches('.').to_string(); + let host = host.trim_end_matches('.').to_string(); - let security: async_smtp::ClientSecurity = { + let security = { let tls_params: ClientTlsParameters = ClientTlsParameters::new( host.clone(), TlsConnector::new()