From dd5d0e85dc674b8576eb709dee1182070df26ea4 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Thu, 4 Nov 2021 20:37:44 -0700 Subject: [PATCH] Drop unnecessary manual Clone impl --- quinn/src/connection.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/quinn/src/connection.rs b/quinn/src/connection.rs index 810b37ac9..413c023af 100644 --- a/quinn/src/connection.rs +++ b/quinn/src/connection.rs @@ -310,7 +310,7 @@ impl Future for ConnectionDriver { /// May be cloned to obtain another handle to the same connection. /// /// [`Connection::close()`]: Connection::close -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Connection(ConnectionRef); impl Connection { @@ -510,12 +510,6 @@ impl Connection { } } -impl Clone for Connection { - fn clone(&self) -> Self { - Connection(self.0.clone()) - } -} - /// A stream of unidirectional QUIC streams initiated by a remote peer. /// /// Incoming streams are *always* opened in the same order that the peer created them, but data can