Skip to content

Commit 3c6aa1e

Browse files
committed
---
yaml --- r: 127748 b: refs/heads/snap-stage3 c: 31281b4 h: refs/heads/master v: v3
1 parent 09ff9a0 commit 3c6aa1e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 49a970f2449a78f28b6c301e542d38593094ca77
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 500b600362b4e119dd1725fd99db745341459f82
4+
refs/heads/snap-stage3: 31281b4bd12bb4bbd52a23a29f59a3398cca1a8f
55
refs/heads/try: d9c23fcbaea89871667272a67ecb8d3a512162f3
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/io/net/tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl TcpStream {
109109
pub fn connect_timeout(addr: SocketAddr,
110110
timeout: Duration) -> IoResult<TcpStream> {
111111
if timeout <= Duration::milliseconds(0) {
112-
return standard_error(TimedOut);
112+
return Err(standard_error(TimedOut));
113113
}
114114

115115
let SocketAddr { ip, port } = addr;

branches/snap-stage3/src/libstd/io/net/unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl UnixStream {
7575
pub fn connect_timeout<P: ToCStr>(path: &P,
7676
timeout: Duration) -> IoResult<UnixStream> {
7777
if timeout <= Duration::milliseconds(0) {
78-
return standard_error(TimedOut);
78+
return Err(standard_error(TimedOut));
7979
}
8080

8181
LocalIo::maybe_raise(|io| {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use {fmt, i32};
1616
use ops::{Add, Sub, Mul, Div, Neg};
1717
use option::{Option, Some, None};
1818
use num;
19-
use num::{CheckedAdd, CheckedMul, ToPrimitive};
19+
use num::{CheckedAdd, CheckedMul};
2020
use result::{Result, Ok, Err};
2121

2222

0 commit comments

Comments
 (0)