mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: fix unused warning (#12888)
This commit is contained in:
@ -14,7 +14,7 @@ workspace = true
|
||||
reth-primitives.workspace = true
|
||||
reth-primitives-traits.workspace = true
|
||||
reth-execution-errors.workspace = true
|
||||
reth-trie-common.workspace = true
|
||||
reth-trie-common = { workspace = true, optional = true }
|
||||
reth-trie.workspace = true
|
||||
|
||||
revm.workspace = true
|
||||
@ -43,14 +43,15 @@ serde = [
|
||||
"alloy-eips/serde",
|
||||
"alloy-primitives/serde",
|
||||
"reth-primitives-traits/serde",
|
||||
"alloy-consensus/serde",
|
||||
"reth-trie-common/serde",
|
||||
"alloy-consensus/serde",
|
||||
"reth-trie/serde",
|
||||
"reth-trie-common?/serde"
|
||||
]
|
||||
serde-bincode-compat = [
|
||||
"serde",
|
||||
"reth-trie-common/serde-bincode-compat",
|
||||
"reth-primitives/serde-bincode-compat",
|
||||
"reth-primitives-traits/serde-bincode-compat",
|
||||
"reth-trie-common/serde-bincode-compat",
|
||||
"serde_with",
|
||||
"alloy-eips/serde-bincode-compat",
|
||||
"alloy-consensus/serde-bincode-compat",
|
||||
|
||||
@ -520,7 +520,7 @@ pub enum ChainSplit<N: NodePrimitives = reth_primitives::EthPrimitives> {
|
||||
}
|
||||
|
||||
/// Bincode-compatible [`Chain`] serde implementation.
|
||||
#[cfg(all(feature = "serde", feature = "serde-bincode-compat"))]
|
||||
#[cfg(feature = "serde-bincode-compat")]
|
||||
pub(super) mod serde_bincode_compat {
|
||||
use crate::ExecutionOutcome;
|
||||
use alloc::borrow::Cow;
|
||||
|
||||
@ -26,7 +26,7 @@ pub use execution_outcome::*;
|
||||
/// all fields are serialized.
|
||||
///
|
||||
/// Read more: <https://github.com/bincode-org/bincode/issues/326>
|
||||
#[cfg(all(feature = "serde", feature = "serde-bincode-compat"))]
|
||||
#[cfg(feature = "serde-bincode-compat")]
|
||||
pub mod serde_bincode_compat {
|
||||
pub use super::chain::serde_bincode_compat::*;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user