Skip to content

Commit 4b429de

Browse files
committed
---
yaml --- r: 129780 b: refs/heads/auto c: 447b64e h: refs/heads/master v: v3
1 parent 28af88e commit 4b429de

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
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 26af5da6d4ca7ee3e7cec0333b2465a1c65e1171
16+
refs/heads/auto: 447b64ebc28b0104a8121b4318bbd2970de2cc56
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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)