mirror of https://github.com/ctz/rustls
server::handy: fix new nightly clippy lint
"warning: you are explicitly cloning with `.map()`"
This commit is contained in:
parent
7e0e8ab599
commit
9f864874cf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue