mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-06 04:00:02 +00:00
Initialize REQWESTGLOBALCONFIG
in main::entry
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
a3ab3ec502
commit
087d544331
1 changed files with 5 additions and 0 deletions
|
@ -185,6 +185,11 @@ async fn entry() -> Result<()> {
|
||||||
bin_dir: opts.bin_dir.take(),
|
bin_dir: opts.bin_dir.take(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Initialize REQWESTGLOBALCONFIG
|
||||||
|
REQWESTGLOBALCONFIG
|
||||||
|
.set((opts.https_only_mode, opts.min_tls_version))
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
// Setup logging
|
// Setup logging
|
||||||
let mut log_config = ConfigBuilder::new();
|
let mut log_config = ConfigBuilder::new();
|
||||||
log_config.add_filter_ignore("hyper".to_string());
|
log_config.add_filter_ignore("hyper".to_string());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue