From cc5a6c6c82ba08e12dd27a41411ddc3b80d4749a Mon Sep 17 00:00:00 2001 From: Thibault Meunier Date: Thu, 29 Feb 2024 09:57:12 +0100 Subject: [PATCH] Fix clippy following rust 1.74 upgrade Clippy detects redundant conditions. --- drand_core/src/http_client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drand_core/src/http_client.rs b/drand_core/src/http_client.rs index ae18c05..5de4d4f 100644 --- a/drand_core/src/http_client.rs +++ b/drand_core/src/http_client.rs @@ -129,7 +129,7 @@ impl HttpClient { .call() .map_err(|e| -> DrandError { match e { - ureq::Error::Status(code, _) if code == 404 => { + ureq::Error::Status(404, _) => { Box::new(BeaconError::NotFound).into() } _ => Box::new(HttpClientError::RequestFailed(e.into())).into(),