chore(ci): unpin clippy (#11697)

This commit is contained in:
Federico Gimenez
2024-10-13 11:25:56 +02:00
committed by GitHub
parent 67c5725077
commit c03399d1eb
2 changed files with 3 additions and 4 deletions

View File

@ -30,7 +30,6 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@clippy
with:
toolchain: nightly-2024-09-25
components: clippy
- uses: Swatinem/rust-cache@v2
with:
@ -52,7 +51,6 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2024-09-25
components: clippy
- uses: Swatinem/rust-cache@v2
with:

View File

@ -197,8 +197,9 @@ impl<N: ProviderNodeTypes> BlockchainProvider2<N> {
for (_, block_body) in block_bodies {
let mut block_receipts = Vec::with_capacity(block_body.tx_count as usize);
for tx_num in block_body.tx_num_range() {
let receipt =
receipt_iter.next().ok_or(ProviderError::ReceiptNotFound(tx_num.into()))?;
let receipt = receipt_iter
.next()
.ok_or_else(|| ProviderError::ReceiptNotFound(tx_num.into()))?;
block_receipts.push(Some(receipt));
}
receipts.push(block_receipts);