mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-13 15:30:03 +00:00
Refactor: Replace REQWESTCONFIG
with initialize_reqwest_client
so that we don't need two `OnceCell`s. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
50b436100e
commit
6582eefd25
3 changed files with 29 additions and 34 deletions
|
@ -88,7 +88,7 @@ impl QuickInstall {
|
|||
let url = Url::parse(&stats_url)?;
|
||||
debug!("Sending installation report to quickinstall ({url})");
|
||||
|
||||
new_reqwest_client()?
|
||||
new_reqwest_client()
|
||||
.request(Method::HEAD, url.clone())
|
||||
.send()
|
||||
.await
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue