summaryrefslogtreecommitdiffstats
path: root/tokio-tls
diff options
context:
space:
mode:
authorTaiki Endo <te316e89@gmail.com>2019-08-11 02:01:20 +0900
committerGitHub <noreply@github.com>2019-08-11 02:01:20 +0900
commitd9f9c5658f135d2c5aca19ef435266170187c924 (patch)
tree5454c8087d7dffc244b97fec328a5774879921be /tokio-tls
parentfff39c03b19871aafad25df5b8688d3915f001a0 (diff)
chore: bump to newer nightly (#1426)
Diffstat (limited to 'tokio-tls')
-rw-r--r--tokio-tls/src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tokio-tls/src/lib.rs b/tokio-tls/src/lib.rs
index 515935c7..3d8900ce 100644
--- a/tokio-tls/src/lib.rs
+++ b/tokio-tls/src/lib.rs
@@ -72,7 +72,7 @@ struct Guard<'a, S>(&'a mut TlsStream<S>)
where
AllowStd<S>: Read + Write;
-impl<'a, S> Drop for Guard<'a, S>
+impl<S> Drop for Guard<'_, S>
where
AllowStd<S>: Read + Write,
{
@@ -287,7 +287,6 @@ impl TlsAcceptor {
/// This is typically used after a new socket has been accepted from a
/// `TcpListener`. That socket is then passed to this function to perform
/// the server half of accepting a client connection.
- #[allow(clippy::needless_lifetimes)] // false positive: https://github.com/rust-lang/rust-clippy/issues/3988
pub async fn accept<S>(&self, stream: S) -> Result<TlsStream<S>, Error>
where
S: AsyncRead + AsyncWrite + Unpin,