Skip to content

Commit 8cb0a23

Browse files
committed
fix: Clippy removing redundant into calls in state query responses
1 parent 662b053 commit 8cb0a23

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

modules/rest_blockfrost/src/handlers/accounts.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub async fn handle_account_registrations_blockfrost(
122122
)) => Ok(None),
123123
Message::StateQueryResponse(StateQueryResponse::Accounts(
124124
AccountsStateQueryResponse::Error(e),
125-
)) => Err(e.into()),
125+
)) => Err(e),
126126
_ => Err(QueryError::internal_error(
127127
"Unexpected message type while retrieving account registrations",
128128
)),
@@ -149,7 +149,7 @@ pub async fn handle_account_registrations_blockfrost(
149149
)) => Ok(tx_hashes),
150150
Message::StateQueryResponse(StateQueryResponse::Blocks(
151151
BlocksStateQueryResponse::Error(e),
152-
)) => Err(e.into()),
152+
)) => Err(e),
153153
_ => Err(QueryError::internal_error(
154154
"Unexpected message type while resolving transaction hashes",
155155
)),
@@ -203,7 +203,7 @@ pub async fn handle_account_delegations_blockfrost(
203203
)) => Ok(None),
204204
Message::StateQueryResponse(StateQueryResponse::Accounts(
205205
AccountsStateQueryResponse::Error(e),
206-
)) => Err(e.into()),
206+
)) => Err(e),
207207
_ => Err(QueryError::internal_error(
208208
"Unexpected message type while retrieving account delegations",
209209
)),
@@ -230,7 +230,7 @@ pub async fn handle_account_delegations_blockfrost(
230230
)) => Ok(tx_hashes),
231231
Message::StateQueryResponse(StateQueryResponse::Blocks(
232232
BlocksStateQueryResponse::Error(e),
233-
)) => Err(e.into()),
233+
)) => Err(e),
234234
_ => Err(QueryError::internal_error(
235235
"Unexpected message type while resolving transaction hashes",
236236
)),
@@ -289,7 +289,7 @@ pub async fn handle_account_mirs_blockfrost(
289289
)) => Ok(None),
290290
Message::StateQueryResponse(StateQueryResponse::Accounts(
291291
AccountsStateQueryResponse::Error(e),
292-
)) => Err(e.into()),
292+
)) => Err(e),
293293
_ => Err(QueryError::internal_error(
294294
"Unexpected message type while retrieving account mirs",
295295
)),
@@ -316,7 +316,7 @@ pub async fn handle_account_mirs_blockfrost(
316316
)) => Ok(tx_hashes),
317317
Message::StateQueryResponse(StateQueryResponse::Blocks(
318318
BlocksStateQueryResponse::Error(e),
319-
)) => Err(e.into()),
319+
)) => Err(e),
320320
_ => Err(QueryError::internal_error(
321321
"Unexpected message type while resolving transaction hashes",
322322
)),
@@ -369,7 +369,7 @@ pub async fn handle_account_withdrawals_blockfrost(
369369
)) => Ok(None),
370370
Message::StateQueryResponse(StateQueryResponse::Accounts(
371371
AccountsStateQueryResponse::Error(e),
372-
)) => Err(e.into()),
372+
)) => Err(e),
373373
_ => Err(QueryError::internal_error(
374374
"Unexpected message type while retrieving account withdrawals",
375375
)),
@@ -396,7 +396,7 @@ pub async fn handle_account_withdrawals_blockfrost(
396396
)) => Ok(tx_hashes),
397397
Message::StateQueryResponse(StateQueryResponse::Blocks(
398398
BlocksStateQueryResponse::Error(e),
399-
)) => Err(e.into()),
399+
)) => Err(e),
400400
_ => Err(QueryError::internal_error(
401401
"Unexpected message type while resolving transaction hashes",
402402
)),
@@ -449,7 +449,7 @@ pub async fn handle_account_rewards_blockfrost(
449449
)) => Ok(None),
450450
Message::StateQueryResponse(StateQueryResponse::Accounts(
451451
AccountsStateQueryResponse::Error(e),
452-
)) => Err(e.into()),
452+
)) => Err(e),
453453
_ => Err(QueryError::internal_error(
454454
"Unexpected message type while retrieving account rewards",
455455
)),
@@ -499,7 +499,7 @@ pub async fn handle_account_addresses_blockfrost(
499499
)) => Ok(None),
500500
Message::StateQueryResponse(StateQueryResponse::Accounts(
501501
AccountsStateQueryResponse::Error(e),
502-
)) => Err(e.into()),
502+
)) => Err(e),
503503
_ => Err(QueryError::internal_error(
504504
"Unexpected message type while retrieving account addresses",
505505
)),

0 commit comments

Comments
 (0)