From df3e6744e2cf212389cc5bddf3dd46da78629c29 Mon Sep 17 00:00:00 2001 From: Francisco Gouveia Date: Sun, 9 Aug 2026 20:38:21 +0100 Subject: [PATCH] chore: remove unnecessary clone --- rustls-platform-verifier/src/verification/others.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/rustls-platform-verifier/src/verification/others.rs b/rustls-platform-verifier/src/verification/others.rs index d18515e8..6e4796fb 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))))?, }) } }