File tree Expand file tree Collapse file tree 3 files changed +1
-4
lines changed Expand file tree Collapse file tree 3 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1164,7 +1164,6 @@ where
1164
1164
let tip = match state_service
1165
1165
. oneshot ( zs:: Request :: Tip )
1166
1166
. await
1167
- . map_err ( Into :: into)
1168
1167
. map_err ( VerifyCheckpointError :: Tip ) ?
1169
1168
{
1170
1169
zs:: Response :: Tip ( tip) => tip,
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ impl<S> HttpRequestMiddleware<S> {
66
66
67
67
/// Check if the request is authenticated.
68
68
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| {
70
70
headers
71
71
. get ( header:: AUTHORIZATION )
72
72
. and_then ( |auth_header| auth_header. to_str ( ) . ok ( ) )
Original file line number Diff line number Diff line change @@ -935,7 +935,6 @@ impl Service<Request> for StateService {
935
935
// https://github.com/rust-lang/rust/issues/70142
936
936
. and_then ( convert:: identity)
937
937
. map ( Response :: Committed )
938
- . map_err ( Into :: into)
939
938
}
940
939
. instrument ( span)
941
940
. boxed ( )
@@ -983,7 +982,6 @@ impl Service<Request> for StateService {
983
982
// https://github.com/rust-lang/rust/issues/70142
984
983
. and_then ( convert:: identity)
985
984
. map ( Response :: Committed )
986
- . map_err ( Into :: into)
987
985
}
988
986
. instrument ( span)
989
987
. boxed ( )
You can’t perform that action at this time.
0 commit comments