Skip to content

Commit

Permalink
0.2.21
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Apr 14, 2024
1 parent 8305d05 commit 6b6d44f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chompbuild"
version = "0.2.20"
version = "0.2.21"
authors = ["Guy Bedford <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/http_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

use anyhow::{anyhow, Result};
use dirs::home_dir;
use hyper::{Client, Uri};
use hyper::{client::HttpConnector, Client, Uri};
use hyper_tls::HttpsConnector;
use sha2::{Digest, Sha256};
use std::path::PathBuf;
Expand Down Expand Up @@ -89,7 +89,7 @@ pub async fn fetch_uri_cached(uri_str: &str, uri: Uri) -> Result<String> {

println!("\x1b[34;1mFetch\x1b[0m {}", &uri_str);
let https = HttpsConnector::new();
let client = Client::builder().build::<HttpsConnector<_>, hyper::Body>(https);
let client = Client::builder().build::<HttpsConnector<HttpConnector>, hyper::Body>(https);

let res = client.get(uri).await?;
if res.status() != 200 {
Expand Down

0 comments on commit 6b6d44f

Please sign in to comment.