We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 361c2db commit 369b1c8Copy full SHA for 369b1c8
tests/interval.rs
@@ -63,7 +63,7 @@ fn from_std_duration() {
63
100
64
);
65
66
- let paired = Interval::try_from(Duration::from_secs_f32(2.8)).unwrap();
+ let paired = Interval::try_from(Duration::new(2, 800_000_000)).unwrap();
67
assert_eq!(paired.seconds(), 2);
68
assert_eq!(paired.microseconds(), 800_000);
69
assert_eq!(paired.milliseconds(), 800);
0 commit comments