Fix clippy lint

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2024-06-11 22:19:26 +10:00
parent 200fb44b4f
commit 184ea69e46
No known key found for this signature in database
GPG key ID: 76D1E687CA3C4928

View file

@ -172,7 +172,7 @@ impl Client {
url: &Url, url: &Url,
) -> Result<ControlFlow<reqwest::Response, Result<reqwest::Response, ReqwestError>>, ReqwestError> ) -> Result<ControlFlow<reqwest::Response, Result<reqwest::Response, ReqwestError>>, 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 { let response = match self.0.service.call(request).await {
Err(err) if err.is_timeout() || err.is_connect() => { Err(err) if err.is_timeout() || err.is_connect() => {