Skip to content

Commit

Permalink
server::handy: fix new nightly clippy lint
Browse files Browse the repository at this point in the history
"warning: you are explicitly cloning with `.map()`"
  • Loading branch information
ctz committed Apr 19, 2024
1 parent 7e0e8ab commit 9f86487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustls/src/server/handy.rs
Expand Up @@ -206,7 +206,7 @@ impl ResolvesServerCertUsingSni {
impl server::ResolvesServerCert for ResolvesServerCertUsingSni {
fn resolve(&self, client_hello: ClientHello) -> Option<Arc<sign::CertifiedKey>> {
if let Some(name) = client_hello.server_name() {
self.by_name.get(name).map(Arc::clone)
self.by_name.get(name).cloned()
} else {
// This kind of resolver requires SNI
None
Expand Down

0 comments on commit 9f86487

Please sign in to comment.