diff options
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 { |
