diff --git a/src/object_store/src/object/mod.rs b/src/object_store/src/object/mod.rs index fe80794756246..ff91c5f1d3383 100644 --- a/src/object_store/src/object/mod.rs +++ b/src/object_store/src/object/mod.rs @@ -439,9 +439,6 @@ impl MonitoredStreamingReader { } } - // This is a clippy bug, see https://github.com/rust-lang/rust-clippy/issues/11380. - // TODO: remove `allow` here after the issued is closed. - #[expect(clippy::needless_pass_by_ref_mut)] pub async fn read_bytes(&mut self, buf: &mut [u8]) -> ObjectResult { let operation_type = "streaming_read_read_bytes"; let data_len = buf.len(); diff --git a/src/object_store/src/object/s3.rs b/src/object_store/src/object/s3.rs index 6dce56ed4c759..2c6f126e3c001 100644 --- a/src/object_store/src/object/s3.rs +++ b/src/object_store/src/object/s3.rs @@ -539,12 +539,7 @@ impl S3ObjectStore { pub fn new_http_connector(config: &S3ObjectStoreConfig) -> impl Into { // Customize http connector to set keepalive. - let native_tls = { - let mut tls = hyper_tls::native_tls::TlsConnector::builder(); - let tls = tls - .min_protocol_version(Some(hyper_tls::native_tls::Protocol::Tlsv12)) - .build() - .unwrap_or_else(|e| panic!("Error while creating TLS connector: {}", e)); + let connector = { let mut http = hyper::client::HttpConnector::new(); // connection config @@ -565,13 +560,13 @@ impl S3ObjectStore { } http.enforce_http(false); - hyper_tls::HttpsConnector::from((http, tls.into())) + http }; aws_smithy_client::hyper_ext::Adapter::builder() .hyper_builder(hyper::client::Builder::default()) .connector_settings(ConnectorSettings::builder().build()) - .build(monitor_connector(native_tls, "S3")) + .build(monitor_connector(connector, "S3")) } pub async fn new_with_config(