Merge pull request #657 from Ekleog/arbitrary-size-hint

implement Arbitrary::size_hint
This commit is contained in:
Ashley Mannix 2023-01-31 15:07:22 +10:00 committed by GitHub
commit 52197cd275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)]