mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
test: make cargo t compile in codecs (#12261)
This commit is contained in:
@ -7,7 +7,7 @@ macro_rules! cond_mod {
|
||||
#[cfg(feature = "test-utils")]
|
||||
pub mod $mod_name;
|
||||
#[cfg(not(feature = "test-utils"))]
|
||||
mod $mod_name;
|
||||
pub(crate) mod $mod_name;
|
||||
)*
|
||||
};
|
||||
}
|
||||
|
||||
@ -106,7 +106,7 @@ impl<'a> arbitrary::Arbitrary<'a> for TxEip4844 {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(test, feature = "test-utils"))]
|
||||
#[cfg(feature = "test-utils")]
|
||||
fn serialize_placeholder<S>(value: &Option<()>, serializer: S) -> Result<S::Ok, S::Error>
|
||||
where
|
||||
S: serde::Serializer,
|
||||
@ -119,7 +119,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(test, feature = "test-utils"))]
|
||||
#[cfg(feature = "test-utils")]
|
||||
fn deserialize_placeholder<'de, D>(deserializer: D) -> Result<Option<()>, D::Error>
|
||||
where
|
||||
D: serde::Deserializer<'de>,
|
||||
|
||||
Reference in New Issue
Block a user