Skip to content

Commit 7dde1a4

Browse files
committed
---
yaml --- r: 129912 b: refs/heads/try c: 447b64e h: refs/heads/master v: v3
1 parent 0541ccc commit 7dde1a4

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 0bdac78da87605f6f7f6e7924872617226b19c85
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 602592675ce86aeca465c4ac748cee2bff291443
5-
refs/heads/try: 26af5da6d4ca7ee3e7cec0333b2465a1c65e1171
5+
refs/heads/try: 447b64ebc28b0104a8121b4318bbd2970de2cc56
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

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