Skip to content

Commit 89aa4bd

Browse files
committed
Fix Clippy lints for Rust 1.85
1 parent 361fa65 commit 89aa4bd

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

zebra-consensus/src/checkpoint.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,6 @@ where
11641164
let tip = match state_service
11651165
.oneshot(zs::Request::Tip)
11661166
.await
1167-
.map_err(Into::into)
11681167
.map_err(VerifyCheckpointError::Tip)?
11691168
{
11701169
zs::Response::Tip(tip) => tip,

zebra-rpc/src/server/http_request_compatibility.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl<S> HttpRequestMiddleware<S> {
6666

6767
/// Check if the request is authenticated.
6868
pub fn check_credentials(&self, headers: &header::HeaderMap) -> bool {
69-
self.cookie.as_ref().map_or(true, |internal_cookie| {
69+
self.cookie.as_ref().is_none_or(|internal_cookie| {
7070
headers
7171
.get(header::AUTHORIZATION)
7272
.and_then(|auth_header| auth_header.to_str().ok())

zebra-state/src/service.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,6 @@ impl Service<Request> for StateService {
935935
// https://github.com/rust-lang/rust/issues/70142
936936
.and_then(convert::identity)
937937
.map(Response::Committed)
938-
.map_err(Into::into)
939938
}
940939
.instrument(span)
941940
.boxed()
@@ -983,7 +982,6 @@ impl Service<Request> for StateService {
983982
// https://github.com/rust-lang/rust/issues/70142
984983
.and_then(convert::identity)
985984
.map(Response::Committed)
986-
.map_err(Into::into)
987985
}
988986
.instrument(span)
989987
.boxed()

0 commit comments

Comments
 (0)