From ef631686622781015a20c54d82cfd425732e26a9 Mon Sep 17 00:00:00 2001 From: Kendall Weihe Date: Tue, 24 Sep 2024 08:52:07 -0400 Subject: [PATCH] Remove unnecessary comment --- crates/http-std/src/default_client.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/http-std/src/default_client.rs b/crates/http-std/src/default_client.rs index cdda62ef..e9234c8e 100644 --- a/crates/http-std/src/default_client.rs +++ b/crates/http-std/src/default_client.rs @@ -1,3 +1,4 @@ +use crate::{Client, Error, FetchOptions, Method, Response, Result}; use rustls::pki_types::ServerName; use rustls::{ClientConfig, ClientConnection, RootCertStore, StreamOwned}; use rustls_native_certs::load_native_certs; @@ -7,8 +8,6 @@ use std::net::TcpStream; use std::sync::Arc; use url::Url; -use crate::{Client, Error, FetchOptions, Method, Response, Result}; - struct Destination { pub host: String, pub path: String, @@ -57,7 +56,7 @@ fn transmit(destination: &Destination, request: &[u8]) -> Result> { .with_root_certificates(root_store) .with_no_client_auth(); - let rc_config = Arc::new(config); // Arc allows sharing the config + let rc_config = Arc::new(config); let stream = TcpStream::connect((&destination.host[..], destination.port)) .map_err(|err| Error::Network(format!("failed to connect to host: {}", err)))?;