diff --git a/crates/primitives/src/revm/env.rs b/crates/primitives/src/revm/env.rs index 962e08c799ee..c23aa419021b 100644 --- a/crates/primitives/src/revm/env.rs +++ b/crates/primitives/src/revm/env.rs @@ -123,7 +123,7 @@ pub fn tx_env_with_recovered(transaction: &TransactionSignedEcRecovered) -> TxEn #[cfg(feature = "optimism")] { - let mut envelope_buf = Vec::default(); + let mut envelope_buf = Vec::new(); transaction.encode_enveloped(&mut envelope_buf); fill_tx_env(&mut tx_env, transaction.as_ref(), transaction.signer(), envelope_buf.into()); } diff --git a/crates/rpc/rpc-engine-api/src/engine_api.rs b/crates/rpc/rpc-engine-api/src/engine_api.rs index ba3ac0e66614..a000a00ab2e5 100644 --- a/crates/rpc/rpc-engine-api/src/engine_api.rs +++ b/crates/rpc/rpc-engine-api/src/engine_api.rs @@ -262,12 +262,12 @@ where self.inner.task_spawner.spawn_blocking(Box::pin(async move { if count > MAX_PAYLOAD_BODIES_LIMIT { tx.send(Err(EngineApiError::PayloadRequestTooLarge { len: count })).ok(); - return; + return } if start == 0 || count == 0 { tx.send(Err(EngineApiError::InvalidBodiesRange { start, count })).ok(); - return; + return } let mut result = Vec::with_capacity(count as usize); @@ -291,7 +291,7 @@ where } Err(err) => { tx.send(Err(EngineApiError::Internal(Box::new(err)))).ok(); - return; + return } }; }