Skip to content

Commit

Permalink
Fix Clippy lints for Rust 1.85
Browse files Browse the repository at this point in the history
  • Loading branch information
upbqdn committed Feb 21, 2025
1 parent 361fa65 commit 89aa4bd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion zebra-consensus/src/checkpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,6 @@ where
let tip = match state_service
.oneshot(zs::Request::Tip)
.await
.map_err(Into::into)
.map_err(VerifyCheckpointError::Tip)?
{
zs::Response::Tip(tip) => tip,
Expand Down
2 changes: 1 addition & 1 deletion zebra-rpc/src/server/http_request_compatibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl<S> HttpRequestMiddleware<S> {

/// Check if the request is authenticated.
pub fn check_credentials(&self, headers: &header::HeaderMap) -> bool {
self.cookie.as_ref().map_or(true, |internal_cookie| {
self.cookie.as_ref().is_none_or(|internal_cookie| {
headers
.get(header::AUTHORIZATION)
.and_then(|auth_header| auth_header.to_str().ok())
Expand Down
2 changes: 0 additions & 2 deletions zebra-state/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,6 @@ impl Service<Request> for StateService {
// https://github.com/rust-lang/rust/issues/70142
.and_then(convert::identity)
.map(Response::Committed)
.map_err(Into::into)
}
.instrument(span)
.boxed()
Expand Down Expand Up @@ -983,7 +982,6 @@ impl Service<Request> for StateService {
// https://github.com/rust-lang/rust/issues/70142
.and_then(convert::identity)
.map(Response::Committed)
.map_err(Into::into)
}
.instrument(span)
.boxed()
Expand Down

0 comments on commit 89aa4bd

Please sign in to comment.