Skip to content

Commit

Permalink
Fix clippy following rust 1.74 upgrade
Browse files Browse the repository at this point in the history
Clippy detects redundant conditions.
  • Loading branch information
thibmeu committed Feb 29, 2024
1 parent eb0fa17 commit cc5a6c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drand_core/src/http_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit cc5a6c6

Please sign in to comment.