Skip to content

Commit 9c1739a

Browse files
committed
---
yaml --- r: 132733 b: refs/heads/dist-snap c: 31281b4 h: refs/heads/master i: 132731: 397fcd4 v: v3
1 parent 8f17c67 commit 9c1739a

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
@@ -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: 500b600362b4e119dd1725fd99db745341459f82
9+
refs/heads/dist-snap: 31281b4bd12bb4bbd52a23a29f59a3398cca1a8f
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/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/dist-snap/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/dist-snap/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)