Update dependencies (Hyper v1.x) (#39)
* Cargo update * Update major non-breaking changes * Add deprecation feature-flags to hyper v0.14 * Semi-upgrade hyper-rustls * Revert deprecated warnings
This commit is contained in:
@ -21,7 +21,12 @@ use crate::utils::format_url;
|
||||
const REDDIT_URL_BASE: &str = "https://oauth.reddit.com";
|
||||
|
||||
pub static CLIENT: Lazy<Client<HttpsConnector<HttpConnector>>> = Lazy::new(|| {
|
||||
let https = hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_only().enable_http1().build();
|
||||
let https = hyper_rustls::HttpsConnectorBuilder::new()
|
||||
.with_native_roots()
|
||||
.expect("No native root certificates found")
|
||||
.https_only()
|
||||
.enable_http1()
|
||||
.build();
|
||||
client::Client::builder().build(https)
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user