server::handy: fix new nightly clippy lint

"warning: you are explicitly cloning with `.map()`"
This commit is contained in:
Joseph Birr-Pixton 2024-02-27 14:29:54 +00:00 committed by Joe Birr-Pixton
parent 7e0e8ab599
commit 9f864874cf
1 changed files with 1 additions and 1 deletions

View File

@ -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