From 730af453f657493b1eae6ed2fa7b446c190c0725 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 1 Dec 2024 07:04:21 +0200 Subject: [PATCH] remove extra clone --- src/client/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/connection.rs b/src/client/connection.rs index 802a33c..8960f4a 100644 --- a/src/client/connection.rs +++ b/src/client/connection.rs @@ -22,7 +22,6 @@ impl Connection { server_identity: Option, ) -> Result { Ok(Self { - socket_connection: socket_connection.clone(), tls_client_connection: match TlsClientConnection::new( &socket_connection, server_identity.as_ref(), @@ -48,6 +47,7 @@ impl Connection { } Err(e) => return Err(Error::TlsClientConnection(e)), }, + socket_connection, }) }