Skip to content

Commit

Permalink
refactor: fix warnings related to mutability of self (#2245)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelMarks authored Apr 13, 2024
1 parent 0720159 commit e99da85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blocking/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand All @@ -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))
}

Expand Down

0 comments on commit e99da85

Please sign in to comment.