mirror of
https://github.com/uuid-rs/uuid.git
synced 2025-09-28 13:31:58 +00:00
fix a warning in arbitrary support
This commit is contained in:
parent
646bd98e9b
commit
759c971f09
2
src/external/arbitrary_support.rs
vendored
2
src/external/arbitrary_support.rs
vendored
@ -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))
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user