From 240db9dafc72f26ed8eff8d58ce7a4ed317a06bc Mon Sep 17 00:00:00 2001 From: SabrinaJewson Date: Sun, 13 Mar 2022 16:08:35 +0000 Subject: [PATCH] Remove unneccessary and superfluous bounds --- src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 56ac1eb..541e42d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,7 +18,6 @@ use futures_util::stream::{FuturesUnordered, Stream, StreamExt}; use pin_project_lite::pin_project; use std::future::Future; use std::io; -use std::marker::Unpin; use std::pin::Pin; use std::task::{Context, Poll}; use std::time::Duration; @@ -40,7 +39,7 @@ pub trait AsyncTls: Clone { /// Error type for completing the TLS handshake type Error: std::error::Error; /// Type of the Future for the TLS stream that is accepted. - type AcceptFuture: Future> + Unpin; + type AcceptFuture: Future>; /// Accept a TLS connection on an underlying stream fn accept(&self, stream: C) -> Self::AcceptFuture; @@ -147,7 +146,6 @@ where impl TlsListener where A: AsyncAccept, - A::Connection: AsyncRead + AsyncWrite + Unpin + 'static, A::Error: std::error::Error, T: AsyncTls, Self: Unpin, @@ -170,7 +168,6 @@ where impl Stream for TlsListener where A: AsyncAccept, - A::Connection: AsyncRead + AsyncWrite + Unpin + 'static, A::Error: std::error::Error, T: AsyncTls, { @@ -378,7 +375,6 @@ mod hyper_impl { impl HyperAccept for TlsListener where A: AsyncAccept, - A::Connection: AsyncRead + AsyncWrite + Unpin + 'static, A::Error: std::error::Error, T: AsyncTls, {