Skip to content

Commit 5014edf

Browse files
committed
fix clippy
1 parent 08a460b commit 5014edf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

substrate/frame/revive/rpc/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ impl Client {
691691
let transactions = if hydrated_transactions {
692692
receipts
693693
.into_iter()
694-
.map(|(signed_tx, receipt)| TransactionInfo::new(receipt, signed_tx).into())
694+
.map(|(signed_tx, receipt)| TransactionInfo::new(receipt, signed_tx))
695695
.collect::<Vec<TransactionInfo>>()
696696
.into()
697697
} else {

substrate/frame/revive/rpc/src/receipt_provider/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl ReceiptProvider for DBReceiptProvider {
166166
}
167167

168168
async fn receipt_by_hash(&self, transaction_hash: &H256) -> Option<ReceiptInfo> {
169-
let (block_hash, transaction_index) = self.fetch_row(&transaction_hash).await?;
169+
let (block_hash, transaction_index) = self.fetch_row(transaction_hash).await?;
170170

171171
let block = self.block_provider.block_by_hash(&block_hash).await.ok()??;
172172
let (_, receipt) =

0 commit comments

Comments
 (0)