diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-06-14 11:03:34 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-15 23:30:24 -0700 |
| commit | 89b0e6e12ba2fb24ec0e6655a1130c16eb8d1745 (patch) | |
| tree | 842308cfd38935989d625db41ffdd22758f8acdb /src/libstd/io/net/tcp.rs | |
| parent | 6d8342f5e9f7093694548e761ee7df4f55243f3f (diff) | |
| download | rust-89b0e6e12ba2fb24ec0e6655a1130c16eb8d1745.tar.gz rust-89b0e6e12ba2fb24ec0e6655a1130c16eb8d1745.zip | |
Register new snapshots
Diffstat (limited to 'src/libstd/io/net/tcp.rs')
| -rw-r--r-- | src/libstd/io/net/tcp.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/io/net/tcp.rs b/src/libstd/io/net/tcp.rs index 6c773467553..8ffb057c934 100644 --- a/src/libstd/io/net/tcp.rs +++ b/src/libstd/io/net/tcp.rs @@ -51,11 +51,11 @@ use rt::rtio; /// drop(stream); // close the connection /// ``` pub struct TcpStream { - obj: Box<RtioTcpStream:Send>, + obj: Box<RtioTcpStream + Send>, } impl TcpStream { - fn new(s: Box<RtioTcpStream:Send>) -> TcpStream { + fn new(s: Box<RtioTcpStream + Send>) -> TcpStream { TcpStream { obj: s } } @@ -326,7 +326,7 @@ impl Writer for TcpStream { /// # } /// ``` pub struct TcpListener { - obj: Box<RtioTcpListener:Send>, + obj: Box<RtioTcpListener + Send>, } impl TcpListener { @@ -382,7 +382,7 @@ impl Listener<TcpStream, TcpAcceptor> for TcpListener { /// a `TcpListener`'s `listen` method, and this object can be used to accept new /// `TcpStream` instances. pub struct TcpAcceptor { - obj: Box<RtioTcpAcceptor:Send>, + obj: Box<RtioTcpAcceptor + Send>, } impl TcpAcceptor { |
