mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
Add clippy fixes and minor refactoring (#6450)
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
#![allow(missing_docs)]
|
||||
use std::sync::Arc;
|
||||
|
||||
use alloy_primitives::hex;
|
||||
use c_kzg::{KzgCommitment, KzgSettings};
|
||||
use criterion::{
|
||||
@@ -16,6 +14,7 @@ use reth_primitives::{
|
||||
BlobTransactionSidecar, TxEip4844,
|
||||
};
|
||||
use revm_primitives::MAX_BLOB_NUMBER_PER_BLOCK;
|
||||
use std::sync::Arc;
|
||||
|
||||
// constant seed to use for the rng
|
||||
const SEED: [u8; 32] = hex!("1337133713371337133713371337133713371337133713371337133713371337");
|
||||
|
||||
@@ -6,15 +6,14 @@ use crate::{
|
||||
};
|
||||
use alloy_rlp::{length_of_length, Decodable, Encodable};
|
||||
use bytes::{Buf, BufMut, BytesMut};
|
||||
#[cfg(any(test, feature = "arbitrary"))]
|
||||
use proptest::strategy::Strategy;
|
||||
use reth_codecs::{add_arbitrary_tests, main_codec, Compact, CompactZstd};
|
||||
use std::{
|
||||
cmp::Ordering,
|
||||
ops::{Deref, DerefMut},
|
||||
};
|
||||
|
||||
#[cfg(any(test, feature = "arbitrary"))]
|
||||
use proptest::strategy::Strategy;
|
||||
|
||||
/// Receipt containing result of transaction execution.
|
||||
#[main_codec(no_arbitrary, zstd)]
|
||||
#[add_arbitrary_tests]
|
||||
|
||||
Reference in New Issue
Block a user