Skip to content

Commit 42fe41b

Browse files
committed
fix: formatting & linting
1 parent 43fe358 commit 42fe41b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/client.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ const REDDIT_SHORT_URL_BASE_HOST: &str = "redd.it";
3030
const ALTERNATIVE_REDDIT_URL_BASE: &str = "https://www.reddit.com";
3131
const ALTERNATIVE_REDDIT_URL_BASE_HOST: &str = "www.reddit.com";
3232

33-
pub static HTTPS_CONNECTOR: LazyLock<HttpsConnector<HttpConnector>> =
34-
LazyLock::new(|| HttpsConnector::new());
33+
pub static HTTPS_CONNECTOR: LazyLock<HttpsConnector<HttpConnector>> = LazyLock::new(HttpsConnector::new);
3534

3635
pub static CLIENT: LazyLock<Client<HttpsConnector<HttpConnector>>> = LazyLock::new(|| Client::builder().build::<_, Body>(HTTPS_CONNECTOR.clone()));
3736

0 commit comments

Comments
 (0)