From 845ea0ff085ca850275e0861f9bb9d53a504c7b0 Mon Sep 17 00:00:00 2001 From: Phoenix Kahlo Date: Wed, 30 Oct 2024 06:09:09 -0700 Subject: [PATCH] fix(tests): Fix test compile error (#2464) --- src/blocking/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blocking/client.rs b/src/blocking/client.rs index fe7574689..a8c5319b4 100644 --- a/src/blocking/client.rs +++ b/src/blocking/client.rs @@ -625,7 +625,7 @@ impl ClientBuilder { /// This requires the `rustls-tls(-...)` Cargo feature enabled. #[cfg(feature = "__rustls")] #[cfg_attr(docsrs, doc(cfg(feature = "rustls-tls")))] - pub fn add_crl(mut self, crl: CertificateRevocationList) -> ClientBuilder { + pub fn add_crl(self, crl: CertificateRevocationList) -> ClientBuilder { self.with_inner(move |inner| inner.add_crl(crl)) } @@ -638,7 +638,7 @@ impl ClientBuilder { #[cfg(feature = "__rustls")] #[cfg_attr(docsrs, doc(cfg(feature = "rustls-tls")))] pub fn add_crls( - mut self, + self, crls: impl IntoIterator, ) -> ClientBuilder { self.with_inner(move |inner| inner.add_crls(crls))