Skip to content

Commit

Permalink
Fixed a clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunwangs committed Dec 16, 2022
1 parent cd7f96f commit bf372a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/src/connection_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ impl ConnectionCache {
if self.use_quic() && !force_use_udp {
Some(Arc::new(QuicLazyInitializedEndpoint::new(
self.client_certificate.clone(),
self.client_endpoint
.as_ref()
.map(|endpoint| endpoint.clone()),
self.client_endpoint.as_ref().cloned(),
)))
} else {
None
Expand Down

0 comments on commit bf372a9

Please sign in to comment.