Skip to content

Commit

Permalink
Merge pull request #657 from Ekleog/arbitrary-size-hint
Browse files Browse the repository at this point in the history
implement Arbitrary::size_hint
  • Loading branch information
KodrAus committed Jan 31, 2023
2 parents b362542 + 212b902 commit 52197cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/external/arbitrary_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ impl Arbitrary<'_> for Uuid {

Ok(Builder::from_random_bytes(b).into_uuid())
}

fn size_hint(depth: usize) -> (usize, Option<usize>) {
(16, Some(16))
}
}

#[cfg(test)]
Expand Down

0 comments on commit 52197cd

Please sign in to comment.