Add clippy fixes and minor refactoring (#6450)

This commit is contained in:
Thomas Coratger
2024-02-06 23:11:22 +01:00
committed by GitHub
parent 189d76735e
commit 37a8780a4d
8 changed files with 38 additions and 55 deletions

View File

@@ -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");

View File

@@ -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]