Skip to content

Commit 759c971

Browse files
committed
fix a warning in arbitrary support
1 parent 646bd98 commit 759c971

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/external/arbitrary_support.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ impl Arbitrary<'_> for Uuid {
1212
Ok(Builder::from_random_bytes(b).into_uuid())
1313
}
1414

15-
fn size_hint(depth: usize) -> (usize, Option<usize>) {
15+
fn size_hint(_: usize) -> (usize, Option<usize>) {
1616
(16, Some(16))
1717
}
1818
}

src/timestamp.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,11 @@ mod tests {
428428
use super::*;
429429

430430
#[test]
431-
fn rfc4122_unix_wraps() {
431+
fn rfc4122_unix_does_not_panic() {
432432
// Ensure timestamp conversions never panic
433433
Timestamp::unix_to_rfc4122_ticks(u64::MAX, 0);
434434
Timestamp::unix_to_rfc4122_ticks(0, u32::MAX);
435+
Timestamp::unix_to_rfc4122_ticks(u64::MAX, u32::MAX);
435436

436437
Timestamp::rfc4122_to_unix(u64::MAX);
437438
}

0 commit comments

Comments
 (0)