From db1367cd02cee054bf363c1c5f97e402c8b46dc8 Mon Sep 17 00:00:00 2001 From: Phoenix Kahlo Date: Mon, 28 Oct 2024 22:35:56 -0500 Subject: [PATCH] fix(tests): Fix test compile error --- 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))