test: make cargo t compile in codecs (#12261)

This commit is contained in:
Matthias Seitz
2024-11-01 21:58:59 +01:00
committed by GitHub
parent 166a2346dc
commit fdf10a7dc2
2 changed files with 3 additions and 3 deletions

View File

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

View File

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