remove extra clone

This commit is contained in:
yggverse 2024-12-01 07:04:21 +02:00
parent 7d90d974a0
commit 730af453f6

View file

@ -22,7 +22,6 @@ impl Connection {
server_identity: Option<NetworkAddress>,
) -> Result<Self, Error> {
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,
})
}