mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-01 10:35:05 -05:00
chore: clippy happy (#8362)
Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
This commit is contained in:
@@ -70,8 +70,8 @@ impl PruneModes {
|
||||
///
|
||||
/// 1. For [PruneMode::Full], it fails if `MIN_BLOCKS > 0`.
|
||||
/// 2. For [PruneMode::Distance(distance)], it fails if `distance < MIN_BLOCKS + 1`. `+ 1` is needed
|
||||
/// because `PruneMode::Distance(0)` means that we leave zero blocks from the latest, meaning we
|
||||
/// have one block in the database.
|
||||
/// because `PruneMode::Distance(0)` means that we leave zero blocks from the latest, meaning we
|
||||
/// have one block in the database.
|
||||
fn deserialize_opt_prune_mode_with_min_blocks<'de, const MIN_BLOCKS: u64, D: Deserializer<'de>>(
|
||||
deserializer: D,
|
||||
) -> Result<Option<PruneMode>, D::Error> {
|
||||
|
||||
@@ -138,8 +138,8 @@ pub fn tx_env_with_recovered(transaction: &TransactionSignedEcRecovered) -> TxEn
|
||||
/// and therefore:
|
||||
/// * the call must execute to completion
|
||||
/// * the call does not count against the block’s gas limit
|
||||
/// * the call does not follow the EIP-1559 burn semantics - no value should be transferred as
|
||||
/// part of the call
|
||||
/// * the call does not follow the EIP-1559 burn semantics - no value should be transferred as part
|
||||
/// of the call
|
||||
/// * if no code exists at `BEACON_ROOTS_ADDRESS`, the call must fail silently
|
||||
pub fn fill_tx_env_with_beacon_root_contract_call(env: &mut Env, parent_beacon_block_root: B256) {
|
||||
env.tx = TxEnv {
|
||||
|
||||
@@ -1346,7 +1346,7 @@ impl TransactionSigned {
|
||||
};
|
||||
|
||||
if !input_data.is_empty() {
|
||||
return Err(RlpError::UnexpectedLength);
|
||||
return Err(RlpError::UnexpectedLength)
|
||||
}
|
||||
|
||||
Ok(output_data)
|
||||
|
||||
Reference in New Issue
Block a user