We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43fe358 commit 42fe41bCopy full SHA for 42fe41b
1 file changed
src/client.rs
@@ -30,8 +30,7 @@ const REDDIT_SHORT_URL_BASE_HOST: &str = "redd.it";
30
const ALTERNATIVE_REDDIT_URL_BASE: &str = "https://www.reddit.com";
31
const ALTERNATIVE_REDDIT_URL_BASE_HOST: &str = "www.reddit.com";
32
33
-pub static HTTPS_CONNECTOR: LazyLock<HttpsConnector<HttpConnector>> =
34
- LazyLock::new(|| HttpsConnector::new());
+pub static HTTPS_CONNECTOR: LazyLock<HttpsConnector<HttpConnector>> = LazyLock::new(HttpsConnector::new);
35
36
pub static CLIENT: LazyLock<Client<HttpsConnector<HttpConnector>>> = LazyLock::new(|| Client::builder().build::<_, Body>(HTTPS_CONNECTOR.clone()));
37
0 commit comments