Skip to content

Commit 23dea98

Browse files
committed
---
yaml --- r: 133078 b: refs/heads/dist-snap c: 447b64e h: refs/heads/master v: v3
1 parent 70a645d commit 23dea98

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 457a3c991d79b971be07fce75f9d0c12848fb37c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 26af5da6d4ca7ee3e7cec0333b2465a1c65e1171
9+
refs/heads/dist-snap: 447b64ebc28b0104a8121b4318bbd2970de2cc56
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libstd/time/duration.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@ mod tests {
390390
Duration::days(1) + Duration::seconds(3));
391391
assert_eq!(Duration::days(10) - Duration::seconds(1000), Duration::seconds(863000));
392392
assert_eq!(Duration::days(10) - Duration::seconds(1000000), Duration::seconds(-136000));
393-
assert_eq!(Duration::days(2) + Duration::seconds(86399) + Duration::nanoseconds(1234567890),
393+
assert_eq!(Duration::days(2) + Duration::seconds(86399) +
394+
Duration::nanoseconds(1234567890),
394395
Duration::days(3) + Duration::nanoseconds(234567890));
395396
assert_eq!(-Duration::days(3), Duration::days(-3));
396397
assert_eq!(-(Duration::days(3) + Duration::seconds(70)),
@@ -489,11 +490,13 @@ mod tests {
489490
fn test_duration_checked_ops() {
490491
assert_eq!(Duration::milliseconds(i64::MAX - 1).checked_add(&Duration::microseconds(999)),
491492
Some(Duration::milliseconds(i64::MAX - 2) + Duration::microseconds(1999)));
492-
assert!(Duration::milliseconds(i64::MAX).checked_add(&Duration::microseconds(1000)).is_none());
493+
assert!(Duration::milliseconds(i64::MAX).checked_add(&Duration::microseconds(1000))
494+
.is_none());
493495

494496
assert_eq!(Duration::milliseconds(i64::MIN).checked_sub(&Duration::milliseconds(0)),
495497
Some(Duration::milliseconds(i64::MIN)));
496-
assert!(Duration::milliseconds(i64::MIN).checked_sub(&Duration::milliseconds(1)).is_none());
498+
assert!(Duration::milliseconds(i64::MIN).checked_sub(&Duration::milliseconds(1))
499+
.is_none());
497500
}
498501

499502
#[test]

0 commit comments

Comments
 (0)