mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: derive arbitrary for tests (#9167)
This commit is contained in:
@ -489,7 +489,7 @@ impl Decodable for Header {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "arbitrary")]
|
||||
#[cfg(any(test, feature = "test-utils", feature = "arbitrary"))]
|
||||
impl<'a> arbitrary::Arbitrary<'a> for Header {
|
||||
fn arbitrary(u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<Self> {
|
||||
// Generate an arbitrary header, passing it to the generate_valid_header function to make
|
||||
|
||||
Reference in New Issue
Block a user