Skip to content

Commit a4fec0a

Browse files
committed
Fixed tests that are failing in Rust 1.63
- Rust version 1.63 changed how they convert float to Durations. Previously they truncated, now they round - https://github.com/rust-lang/rust/releases/tag/1.63.0 - rust-lang/rust#96051 - 'Rounding is now used when converting a float to a Duration. The converted duration can differ slightly from what it was.'
1 parent 32171d1 commit a4fec0a

9 files changed

+4670
-4666
lines changed

lib/mod_interval/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,10 @@ mod tests {
406406
}
407407
}
408408

409+
// https://github.com/rust-lang/rust/releases/tag/1.63.0
410+
// Compatibility Notes
411+
// Rounding is now used when converting a float to a Duration. The converted duration can differ slightly from what it was.
412+
// https://github.com/rust-lang/rust/pull/96051/
409413
#[test]
410414
fn single_segment() {
411415
// start perx, duration, end perx

0 commit comments

Comments
 (0)