diff options
Diffstat (limited to 'examples/tinyhttp.rs')
-rw-r--r-- | examples/tinyhttp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tinyhttp.rs b/examples/tinyhttp.rs index e0496928..085bb801 100644 --- a/examples/tinyhttp.rs +++ b/examples/tinyhttp.rs @@ -81,7 +81,7 @@ fn worker(rx: mpsc::UnboundedReceiver<net::TcpStream>) { // request/response types instead of bytes. Here we'll just use our // framing defined below and then use the `send_all` helper to send the // responses back on the socket after we've processed them - let socket = future::result(TcpStream::from_stream(socket, &handle)); + let socket = future::result(TcpStream::from_std(socket, &handle)); let req = socket.and_then(|socket| { let (tx, rx) = socket.framed(Http).split(); tx.send_all(rx.and_then(respond)) |