diff --git a/src/external/arbitrary_support.rs b/src/external/arbitrary_support.rs index 38cce7c7..40c11f50 100644 --- a/src/external/arbitrary_support.rs +++ b/src/external/arbitrary_support.rs @@ -12,7 +12,7 @@ impl Arbitrary<'_> for Uuid { Ok(Builder::from_random_bytes(b).into_uuid()) } - fn size_hint(depth: usize) -> (usize, Option) { + fn size_hint(_: usize) -> (usize, Option) { (16, Some(16)) } } diff --git a/src/timestamp.rs b/src/timestamp.rs index fe647694..4a234cd9 100644 --- a/src/timestamp.rs +++ b/src/timestamp.rs @@ -428,10 +428,11 @@ mod tests { use super::*; #[test] - fn rfc4122_unix_wraps() { + fn rfc4122_unix_does_not_panic() { // Ensure timestamp conversions never panic Timestamp::unix_to_rfc4122_ticks(u64::MAX, 0); Timestamp::unix_to_rfc4122_ticks(0, u32::MAX); + Timestamp::unix_to_rfc4122_ticks(u64::MAX, u32::MAX); Timestamp::rfc4122_to_unix(u64::MAX); }