Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Jan 10, 2025
1 parent 08a460b commit 5014edf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion substrate/frame/revive/rpc/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ impl Client {
let transactions = if hydrated_transactions {
receipts
.into_iter()
.map(|(signed_tx, receipt)| TransactionInfo::new(receipt, signed_tx).into())
.map(|(signed_tx, receipt)| TransactionInfo::new(receipt, signed_tx))
.collect::<Vec<TransactionInfo>>()
.into()
} else {
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/revive/rpc/src/receipt_provider/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl ReceiptProvider for DBReceiptProvider {
}

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

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

0 comments on commit 5014edf

Please sign in to comment.