refactor: move LazyLock and OnlyLock exports to primitives traits (#13682)

This commit is contained in:
Léa Narzis
2025-01-07 15:28:57 +01:00
committed by GitHub
parent 4d12dcda7c
commit 0d5c0d2701
10 changed files with 27 additions and 23 deletions

View File

@ -26,8 +26,6 @@ pub use base::BASE_MAINNET;
pub use base_sepolia::BASE_SEPOLIA;
use derive_more::{Constructor, Deref, Display, From, Into};
pub use dev::OP_DEV;
#[cfg(not(feature = "std"))]
pub(crate) use once_cell::sync::Lazy as LazyLock;
pub use op::OP_MAINNET;
use op_alloy_consensus::{decode_holocene_extra_data, EIP1559ParamError};
pub use op_sepolia::OP_SEPOLIA;
@ -38,8 +36,7 @@ use reth_chainspec::{
use reth_ethereum_forks::{ChainHardforks, EthereumHardfork, ForkCondition, Hardfork};
use reth_network_peers::NodeRecord;
use reth_optimism_forks::{OpHardfork, OpHardforks};
#[cfg(feature = "std")]
pub(crate) use std::sync::LazyLock;
use reth_primitives_traits::sync::LazyLock;
/// Chain spec builder for a OP stack chain.
#[derive(Debug, Default, From)]