Skip to content

Commit 6400ffb

Browse files
committed
Fix redundant closure
1 parent 5265b3c commit 6400ffb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/api/captcha.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ static SECRET_KEY: LazyLock<String> = LazyLock::new(|| {
1111
});
1212

1313
/// The client for connecting to the CAPTCHA verification API.
14-
static CAPTCHA_CLIENT: LazyLock<reqwest::Client> = LazyLock::new(|| reqwest::Client::new());
14+
static CAPTCHA_CLIENT: LazyLock<reqwest::Client> = LazyLock::new(reqwest::Client::new);
1515

1616
/// Returns whether a Cloudflare Turnstile token is valid.
1717
///

0 commit comments

Comments
 (0)