From 40b10847df4c22a4ae7cc9c74c7e3060223da9a8 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 19 Feb 2024 12:10:47 +0000 Subject: [PATCH] chore: remove redundant imports --- actix-tls/src/connect/rustls_0_20.rs | 1 - actix-tls/src/connect/rustls_0_21.rs | 1 - actix-tls/tests/test_connect.rs | 4 ---- 3 files changed, 6 deletions(-) diff --git a/actix-tls/src/connect/rustls_0_20.rs b/actix-tls/src/connect/rustls_0_20.rs index 19553044..5a114b2a 100644 --- a/actix-tls/src/connect/rustls_0_20.rs +++ b/actix-tls/src/connect/rustls_0_20.rs @@ -3,7 +3,6 @@ //! See [`TlsConnector`] for main connector service factory docs. use std::{ - convert::TryFrom, future::Future, io, pin::Pin, diff --git a/actix-tls/src/connect/rustls_0_21.rs b/actix-tls/src/connect/rustls_0_21.rs index 7474327a..bf922ede 100644 --- a/actix-tls/src/connect/rustls_0_21.rs +++ b/actix-tls/src/connect/rustls_0_21.rs @@ -3,7 +3,6 @@ //! See [`TlsConnector`] for main connector service factory docs. use std::{ - convert::TryFrom, future::Future, io, pin::Pin, diff --git a/actix-tls/tests/test_connect.rs b/actix-tls/tests/test_connect.rs index d3a68276..820df7e3 100644 --- a/actix-tls/tests/test_connect.rs +++ b/actix-tls/tests/test_connect.rs @@ -98,8 +98,6 @@ async fn service_factory() { #[cfg(all(feature = "openssl", feature = "uri"))] #[actix_rt::test] async fn test_openssl_uri() { - use std::convert::TryFrom; - let srv = TestServer::start(|| { fn_service(|io: TcpStream| async { let mut framed = Framed::new(io, BytesCodec); @@ -134,8 +132,6 @@ async fn test_rustls_uri_http1() { #[cfg(all(feature = "rustls-0_22", feature = "uri"))] #[actix_rt::test] async fn test_rustls_uri() { - use std::convert::TryFrom; - let srv = TestServer::start(|| { fn_service(|io: TcpStream| async { let mut framed = Framed::new(io, BytesCodec);