chore: fix unused warning (#12888)

This commit is contained in:
Matthias Seitz
2024-11-26 20:32:54 +01:00
committed by GitHub
parent 38cf6c900d
commit e8d63e4a0b
3 changed files with 7 additions and 6 deletions

View File

@ -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",

View File

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

View File

@ -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::*;
}