diff --git a/rustls-platform-verifier/src/verification/others.rs b/rustls-platform-verifier/src/verification/others.rs index d18515e..6e4796f 100644 --- a/rustls-platform-verifier/src/verification/others.rs +++ b/rustls-platform-verifier/src/verification/others.rs @@ -118,12 +118,9 @@ impl Verifier { }; Ok(Self { - inner: WebPkiServerVerifier::builder_with_provider( - root_store.into(), - crypto_provider.clone(), - ) - .build() - .map_err(|e| TlsError::Other(OtherError(Arc::new(e))))?, + inner: WebPkiServerVerifier::builder_with_provider(root_store.into(), crypto_provider) + .build() + .map_err(|e| TlsError::Other(OtherError(Arc::new(e))))?, }) } }