From 74dda1cbbf3b1caa63501f043538b8cc3005e26d Mon Sep 17 00:00:00 2001 From: Emil Sauer Lynge Date: Mon, 17 Jan 2022 21:42:09 +0100 Subject: [PATCH] remove gratuitous drops as unnecessary --- src/transport/noise.rs | 1 - src/transport/tcp.rs | 1 - src/transport/tls.rs | 1 - 3 files changed, 3 deletions(-) diff --git a/src/transport/noise.rs b/src/transport/noise.rs index 0ebfa45..ffca95e 100644 --- a/src/transport/noise.rs +++ b/src/transport/noise.rs @@ -101,6 +101,5 @@ impl Transport for NoiseTransport { } async fn close(&self, a: Self::Acceptor) { - drop(a); // gratuitous drop } } diff --git a/src/transport/tcp.rs b/src/transport/tcp.rs index 0a2353a..b489e38 100644 --- a/src/transport/tcp.rs +++ b/src/transport/tcp.rs @@ -41,6 +41,5 @@ impl Transport for TcpTransport { } async fn close(&self, a: Self::Acceptor) { - drop(a); // gratuitous drop } } diff --git a/src/transport/tls.rs b/src/transport/tls.rs index 8d74fe3..fd8b9cb 100644 --- a/src/transport/tls.rs +++ b/src/transport/tls.rs @@ -102,6 +102,5 @@ impl Transport for TlsTransport { } async fn close(&self, a: Self::Acceptor) { - drop(a); // gratuitous drop } }