Skip to content

Commit e99da85

Browse files
authored
refactor: fix warnings related to mutability of self (#2245)
1 parent 0720159 commit e99da85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blocking/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ impl ClientBuilder {
600600
/// If the feature is enabled, this value is `true` by default.
601601
#[cfg(feature = "rustls-tls-webpki-roots")]
602602
#[cfg_attr(docsrs, doc(cfg(feature = "rustls-tls-webpki-roots")))]
603-
pub fn tls_built_in_webpki_certs(mut self, enabled: bool) -> ClientBuilder {
603+
pub fn tls_built_in_webpki_certs(self, enabled: bool) -> ClientBuilder {
604604
self.with_inner(move |inner| inner.tls_built_in_webpki_certs(enabled))
605605
}
606606

@@ -609,7 +609,7 @@ impl ClientBuilder {
609609
/// If the feature is enabled, this value is `true` by default.
610610
#[cfg(feature = "rustls-tls-native-roots")]
611611
#[cfg_attr(docsrs, doc(cfg(feature = "rustls-tls-native-roots")))]
612-
pub fn tls_built_in_native_certs(mut self, enabled: bool) -> ClientBuilder {
612+
pub fn tls_built_in_native_certs(self, enabled: bool) -> ClientBuilder {
613613
self.with_inner(move |inner| inner.tls_built_in_native_certs(enabled))
614614
}
615615

0 commit comments

Comments
 (0)