From 5ef57812f8b19c9cadfb40625c10cd85aeb58e58 Mon Sep 17 00:00:00 2001 From: Matthew Esposito Date: Fri, 1 Nov 2024 11:39:05 -0400 Subject: [PATCH] style: fix clippy --- src/client.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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());