Skip to content

Commit

Permalink
chore: remove redundant cfgs (#1516)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Oct 18, 2024
1 parent b4a435d commit 5f8493c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions crates/eips/src/eip2718.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
//!
//! [EIP-2718]: https://eips.ethereum.org/EIPS/eip-2718

#[cfg(not(feature = "std"))]
use crate::alloc::{vec, vec::Vec};

use crate::alloc::vec::Vec;
use alloy_primitives::{keccak256, Sealed, B256};
use alloy_rlp::{Buf, BufMut, Header, EMPTY_STRING_CODE};
use core::{
Expand Down
4 changes: 1 addition & 3 deletions crates/eips/src/eip4844/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ use crate::eip4844::Blob;
#[cfg(feature = "kzg")]
use c_kzg::{KzgCommitment, KzgProof};

#[cfg(not(feature = "std"))]
use alloc::vec::Vec;

use crate::eip4844::{
utils::WholeFe, BYTES_PER_BLOB, FIELD_ELEMENTS_PER_BLOB, MAX_BLOBS_PER_BLOCK,
};
use alloc::vec::Vec;

#[cfg(feature = "kzg")]
use crate::eip4844::env_settings::EnvKzgSettings;
Expand Down
1 change: 0 additions & 1 deletion crates/eips/src/eip4844/sidecar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use alloy_rlp::{Decodable, Encodable};
#[cfg(any(test, feature = "arbitrary"))]
use crate::eip4844::MAX_BLOBS_PER_BLOCK;

#[cfg(not(feature = "std"))]
use alloc::vec::Vec;

/// The versioned hash version for KZG.
Expand Down

0 comments on commit 5f8493c

Please sign in to comment.