diff --git a/crates/rpc/rpc-eth-types/src/cache/mod.rs b/crates/rpc/rpc-eth-types/src/cache/mod.rs index 5f7fddd15356c..b27ca7dadb521 100644 --- a/crates/rpc/rpc-eth-types/src/cache/mod.rs +++ b/crates/rpc/rpc-eth-types/src/cache/mod.rs @@ -398,7 +398,7 @@ where CacheAction::GetBlockWithSenders { block_hash, response_tx } => { if let Some(block) = this.full_block_cache.get(&block_hash).cloned() { let _ = response_tx.send(Ok(Some(block))); - continue; + continue } // block is not in the cache, request it if this is the first consumer @@ -427,7 +427,7 @@ where // check if block is cached if let Some(receipts) = this.receipts_cache.get(&block_hash).cloned() { let _ = response_tx.send(Ok(Some(receipts))); - continue; + continue } // block is not in the cache, request it if this is the first consumer @@ -452,7 +452,7 @@ where // check if the header is cached if let Some(header) = this.headers_cache.get(&block_hash).cloned() { let _ = response_tx.send(Ok(header)); - continue; + continue } // header is not in the cache, request it if this is the first diff --git a/crates/rpc/rpc-eth-types/src/fee_history.rs b/crates/rpc/rpc-eth-types/src/fee_history.rs index 36f1e603141e7..2c365ae90bffa 100644 --- a/crates/rpc/rpc-eth-types/src/fee_history.rs +++ b/crates/rpc/rpc-eth-types/src/fee_history.rs @@ -105,7 +105,7 @@ impl FeeHistoryCache { if entries.len() == 0 { self.inner.upper_bound.store(0, SeqCst); self.inner.lower_bound.store(0, SeqCst); - return; + return } let upper_bound = *entries.last_entry().expect("Contains at least one entry").key(); @@ -152,7 +152,7 @@ impl FeeHistoryCache { .collect::>(); if result.is_empty() { - return None; + return None } Some(result) @@ -314,7 +314,7 @@ where // Empty blocks should return in a zero row if transactions.is_empty() { rewards_in_block.push(0); - continue; + continue } let threshold = (gas_used as f64 * percentile / 100.) as u64; diff --git a/crates/rpc/rpc-eth-types/src/gas_oracle.rs b/crates/rpc/rpc-eth-types/src/gas_oracle.rs index e2e3fab8ccc1c..ca452600100f5 100644 --- a/crates/rpc/rpc-eth-types/src/gas_oracle.rs +++ b/crates/rpc/rpc-eth-types/src/gas_oracle.rs @@ -247,14 +247,14 @@ where // ignore transactions with a tip under the configured threshold if let Some(ignore_under) = self.ignore_price { if effective_tip < Some(ignore_under) { - continue; + continue } } // check if the sender was the coinbase, if so, ignore if let Some(sender) = tx.recover_signer() { if sender == block.beneficiary() { - continue; + continue } } diff --git a/crates/rpc/rpc-eth-types/src/revm_utils.rs b/crates/rpc/rpc-eth-types/src/revm_utils.rs index 87404a973d951..cf6b0d27cfe8e 100644 --- a/crates/rpc/rpc-eth-types/src/revm_utils.rs +++ b/crates/rpc/rpc-eth-types/src/revm_utils.rs @@ -179,7 +179,7 @@ impl CallFees { // Ensure blob_hashes are present if !has_blob_hashes { // Blob transaction but no blob hashes - return Err(RpcInvalidTransactionError::BlobTransactionMissingBlobHashes.into()); + return Err(RpcInvalidTransactionError::BlobTransactionMissingBlobHashes.into()) } Ok(Self { diff --git a/crates/rpc/rpc-eth-types/src/utils.rs b/crates/rpc/rpc-eth-types/src/utils.rs index a05f68589aace..f12c819aea3f3 100644 --- a/crates/rpc/rpc-eth-types/src/utils.rs +++ b/crates/rpc/rpc-eth-types/src/utils.rs @@ -13,7 +13,7 @@ use std::future::Future; /// See [`alloy_eips::eip2718::Decodable2718::decode_2718`] pub fn recover_raw_transaction(mut data: &[u8]) -> EthResult> { if data.is_empty() { - return Err(EthApiError::EmptyRawTransactionData); + return Err(EthApiError::EmptyRawTransactionData) } let transaction =