diff --git a/src/client.rs b/src/client.rs index c174f66..3d20db0 100644 --- a/src/client.rs +++ b/src/client.rs @@ -30,13 +30,10 @@ const REDDIT_SHORT_URL_BASE_HOST: &str = "redd.it"; const ALTERNATIVE_REDDIT_URL_BASE: &str = "https://www.reddit.com"; const ALTERNATIVE_REDDIT_URL_BASE_HOST: &str = "www.reddit.com"; -pub static HTTPS_CONNECTOR: Lazy> = Lazy::new(|| { - hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_only().enable_http2().build() -}); +pub static HTTPS_CONNECTOR: Lazy> = + Lazy::new(|| hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_only().enable_http2().build()); -pub static CLIENT: Lazy>> = Lazy::new(|| { - Client::builder().build::<_, Body>(HTTPS_CONNECTOR.clone()) -}); +pub static CLIENT: Lazy>> = Lazy::new(|| Client::builder().build::<_, Body>(HTTPS_CONNECTOR.clone())); pub static OAUTH_CLIENT: Lazy> = Lazy::new(|| { let client = block_on(Oauth::new());