Skip to content

Commit

Permalink
rm sealedheader manual proptest impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Jun 20, 2024
1 parent 8beabf0 commit becbe8f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions crates/primitives-traits/src/header/sealed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,6 @@ impl SealedHeader {
}
}

#[cfg(any(test, feature = "arbitrary"))]
impl proptest::arbitrary::Arbitrary for SealedHeader {
type Parameters = ();
fn arbitrary_with(_: Self::Parameters) -> Self::Strategy {
// map valid header strategy by sealing
crate::test_utils::valid_header_strategy().prop_map(|header| header.seal_slow()).boxed()
}
type Strategy = proptest::strategy::BoxedStrategy<Self>;
}

#[cfg(any(test, feature = "arbitrary"))]
impl<'a> arbitrary::Arbitrary<'a> for SealedHeader {
fn arbitrary(u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<Self> {
Expand Down

0 comments on commit becbe8f

Please sign in to comment.