From f7ff5fd3b23ff0fc87ad9dc98a740d18803d1828 Mon Sep 17 00:00:00 2001 From: Samuel Marks <807580+SamuelMarks@users.noreply.github.com> Date: Fri, 12 Apr 2024 23:09:51 -0400 Subject: [PATCH] refactor: fix warnings related to mutability of `self` (#2245) --- 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 002c19eb1..fdff882f4 100644 --- a/src/blocking/client.rs +++ b/src/blocking/client.rs @@ -600,7 +600,7 @@ impl ClientBuilder { /// If the feature is enabled, this value is `true` by default. #[cfg(feature = "rustls-tls-webpki-roots")] #[cfg_attr(docsrs, doc(cfg(feature = "rustls-tls-webpki-roots")))] - pub fn tls_built_in_webpki_certs(mut self, enabled: bool) -> ClientBuilder { + pub fn tls_built_in_webpki_certs(self, enabled: bool) -> ClientBuilder { self.with_inner(move |inner| inner.tls_built_in_webpki_certs(enabled)) } @@ -609,7 +609,7 @@ impl ClientBuilder { /// If the feature is enabled, this value is `true` by default. #[cfg(feature = "rustls-tls-native-roots")] #[cfg_attr(docsrs, doc(cfg(feature = "rustls-tls-native-roots")))] - pub fn tls_built_in_native_certs(mut self, enabled: bool) -> ClientBuilder { + pub fn tls_built_in_native_certs(self, enabled: bool) -> ClientBuilder { self.with_inner(move |inner| inner.tls_built_in_native_certs(enabled)) }