From 184ea69e4614c7a5e8183cf05bd8ebbf9c74e882 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Tue, 11 Jun 2024 22:19:26 +1000 Subject: [PATCH] Fix clippy lint Signed-off-by: Jiahao XU --- crates/binstalk-downloader/src/remote.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/binstalk-downloader/src/remote.rs b/crates/binstalk-downloader/src/remote.rs index 10e189bb..7bd2c684 100644 --- a/crates/binstalk-downloader/src/remote.rs +++ b/crates/binstalk-downloader/src/remote.rs @@ -172,7 +172,7 @@ impl Client { url: &Url, ) -> Result>, ReqwestError> { - const HEADER_VALUE_0: HeaderValue = HeaderValue::from_static("0"); + static HEADER_VALUE_0: HeaderValue = HeaderValue::from_static("0"); let response = match self.0.service.call(request).await { Err(err) if err.is_timeout() || err.is_connect() => {