Skip to content

Commit

Permalink
chore: fix cargo hack check
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Feb 28, 2024
1 parent 0f4f2cd commit 4d5dda7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/primitives/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub struct Block {
#[cfg(any(test, feature = "arbitrary"))]
impl proptest::arbitrary::Arbitrary for Block {
type Parameters = ();
type Strategy = BoxedStrategy<Self>;
type Strategy = proptest::prelude::BoxedStrategy<Self>;

fn arbitrary_with(_: Self::Parameters) -> Self::Strategy {
use proptest::{collection::vec, prelude::*};
Expand Down Expand Up @@ -337,7 +337,7 @@ pub struct SealedBlock {
#[cfg(any(test, feature = "arbitrary"))]
impl proptest::arbitrary::Arbitrary for SealedBlock {
type Parameters = ();
type Strategy = BoxedStrategy<Self>;
type Strategy = proptest::prelude::BoxedStrategy<Self>;

fn arbitrary_with(_: Self::Parameters) -> Self::Strategy {
use proptest::{collection::vec, prelude::*};
Expand Down Expand Up @@ -724,12 +724,10 @@ impl<'a> arbitrary::Arbitrary<'a> for BlockBody {
}
}

use proptest::prelude::BoxedStrategy;

#[cfg(any(test, feature = "arbitrary"))]
impl proptest::arbitrary::Arbitrary for BlockBody {
type Parameters = ();
type Strategy = BoxedStrategy<Self>;
type Strategy = proptest::prelude::BoxedStrategy<Self>;

fn arbitrary_with(_: Self::Parameters) -> Self::Strategy {
use proptest::{collection::vec, prelude::*};
Expand Down
1 change: 1 addition & 0 deletions crates/primitives/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,7 @@ impl proptest::arbitrary::Arbitrary for SealedHeader {
type Strategy = proptest::strategy::BoxedStrategy<SealedHeader>;
}

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

0 comments on commit 4d5dda7

Please sign in to comment.