mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-02 10:05:36 +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>,
|
server_identity: Option<NetworkAddress>,
|
||||||
) -> Result<Self, Error> {
|
) -> Result<Self, Error> {
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
socket_connection: socket_connection.clone(),
|
|
||||||
tls_client_connection: match TlsClientConnection::new(
|
tls_client_connection: match TlsClientConnection::new(
|
||||||
&socket_connection,
|
&socket_connection,
|
||||||
server_identity.as_ref(),
|
server_identity.as_ref(),
|
||||||
|
|
@ -48,6 +47,7 @@ impl Connection {
|
||||||
}
|
}
|
||||||
Err(e) => return Err(Error::TlsClientConnection(e)),
|
Err(e) => return Err(Error::TlsClientConnection(e)),
|
||||||
},
|
},
|
||||||
|
socket_connection,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue