Skip to content

Commit 369b1c8

Browse files
committed
Fix failing test due to Duration precision change
Ref: rust-lang/rust#90247
1 parent 361c2db commit 369b1c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/interval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn from_std_duration() {
6363
100
6464
);
6565

66-
let paired = Interval::try_from(Duration::from_secs_f32(2.8)).unwrap();
66+
let paired = Interval::try_from(Duration::new(2, 800_000_000)).unwrap();
6767
assert_eq!(paired.seconds(), 2);
6868
assert_eq!(paired.microseconds(), 800_000);
6969
assert_eq!(paired.milliseconds(), 800);

0 commit comments

Comments
 (0)