mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore(ci): unpin clippy (#11697)
This commit is contained in:
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@ -30,7 +30,6 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@clippy
|
- uses: dtolnay/rust-toolchain@clippy
|
||||||
with:
|
with:
|
||||||
toolchain: nightly-2024-09-25
|
|
||||||
components: clippy
|
components: clippy
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
@ -52,7 +51,6 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@nightly
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
with:
|
with:
|
||||||
toolchain: nightly-2024-09-25
|
|
||||||
components: clippy
|
components: clippy
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@ -197,8 +197,9 @@ impl<N: ProviderNodeTypes> BlockchainProvider2<N> {
|
|||||||
for (_, block_body) in block_bodies {
|
for (_, block_body) in block_bodies {
|
||||||
let mut block_receipts = Vec::with_capacity(block_body.tx_count as usize);
|
let mut block_receipts = Vec::with_capacity(block_body.tx_count as usize);
|
||||||
for tx_num in block_body.tx_num_range() {
|
for tx_num in block_body.tx_num_range() {
|
||||||
let receipt =
|
let receipt = receipt_iter
|
||||||
receipt_iter.next().ok_or(ProviderError::ReceiptNotFound(tx_num.into()))?;
|
.next()
|
||||||
|
.ok_or_else(|| ProviderError::ReceiptNotFound(tx_num.into()))?;
|
||||||
block_receipts.push(Some(receipt));
|
block_receipts.push(Some(receipt));
|
||||||
}
|
}
|
||||||
receipts.push(block_receipts);
|
receipts.push(block_receipts);
|
||||||
|
|||||||
Reference in New Issue
Block a user