mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
remove extra clone
This commit is contained in:
parent
7d90d974a0
commit
730af453f6
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue