Skip to content

Commit

Permalink
Merge pull request #166 from wackbyte/arbitrary-for-all-phantomdata
Browse files Browse the repository at this point in the history
Widen implementation of `Arbitrary` for `PhantomData<A>`
  • Loading branch information
Manishearth authored Jan 12, 2024
2 parents 864f11d + 6204de5 commit c59de1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ impl<'a, A: Arbitrary<'a>> Arbitrary<'a> for iter::Empty<A> {
}
}

impl<'a, A: Arbitrary<'a>> Arbitrary<'a> for ::std::marker::PhantomData<A> {
impl<'a, A: ?Sized> Arbitrary<'a> for ::std::marker::PhantomData<A> {
fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self> {
Ok(::std::marker::PhantomData)
}
Expand Down

0 comments on commit c59de1d

Please sign in to comment.