From 854e72711af28e3064c3046f764311dd4c4adf92 Mon Sep 17 00:00:00 2001 From: Sma1lboy <541898146chen@gmail.com> Date: Thu, 30 Jan 2025 15:59:40 -0600 Subject: [PATCH] fix(https): remove unused parsed_address and basic_auth from _get function --- crates/aim-downloader/src/https.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/crates/aim-downloader/src/https.rs b/crates/aim-downloader/src/https.rs index a2fea8c70130..2c779040fd81 100644 --- a/crates/aim-downloader/src/https.rs +++ b/crates/aim-downloader/src/https.rs @@ -119,7 +119,6 @@ impl HTTPSHandler { } async fn _get(input: &str, output: &str, bar: &mut WrappedBar) -> Result<(), DownloadError> { - let parsed_address = ParsedAddress::parse_address(input, bar.silent); let (mut out, mut downloaded) = io::get_output(output, bar.silent); let res = Client::new() @@ -132,7 +131,6 @@ impl HTTPSHandler { reqwest::header::USER_AGENT, reqwest::header::HeaderValue::from_static(CLIENT_ID), ) - .basic_auth(parsed_address.username, Some(parsed_address.password)) .send() .await .and_then(|r| r.error_for_status())