diff options
author | Alex Crichton <alex@alexcrichton.com> | 2017-12-05 08:24:26 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2017-12-05 08:24:26 -0800 |
commit | 8fcce957cd0f8484e5ad078fc4ada244ea463fb0 (patch) | |
tree | 2c56f4e80d5837de93d700477017626ed2ab4a3d /examples/tinyhttp.rs | |
parent | 259996d8051b1fcdf04042e253c870f206a1926f (diff) |
Rename networking constructors with `_std`
This commit renames the various constructors of networking types to have a
`_std` suffix instead of a smorgasboard of other suffixes, canonicalizing on
`_std` as the suffix for constructors which take the libstd corresponding types.
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)) |