Skip to content

Commit

Permalink
fix a warning in arbitrary support
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Jun 27, 2023
1 parent 646bd98 commit 759c971
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/external/arbitrary_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ impl Arbitrary<'_> for Uuid {
Ok(Builder::from_random_bytes(b).into_uuid())
}

fn size_hint(depth: usize) -> (usize, Option<usize>) {
fn size_hint(_: usize) -> (usize, Option<usize>) {
(16, Some(16))
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 759c971

Please sign in to comment.