From 6a3659d1ae44cc50da18cd5b438a37e7f8085a6d Mon Sep 17 00:00:00 2001 From: pedro bufulin Date: Mon, 22 Jan 2024 23:52:54 -0300 Subject: [PATCH] refactor: use function instead of closure --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index e1c4898..09beebb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -236,7 +236,7 @@ pub async fn stream_blocks( }); let transactions_check_process = spawn_check(&block, |b| { - check_transaction_root(b).map_err(|e| CheckError::TransactionError(e)) + check_transaction_root(b).map_err(CheckError::TransactionError) }); let joint_return = join![receipts_check_process, transactions_check_process];