diff options
author | Roman <humbug@deeptown.org> | 2018-08-14 21:18:54 +0300 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2018-08-14 11:18:54 -0700 |
commit | 2e343f9e4230b03c75da7e3d88e9d8c901a3ce72 (patch) | |
tree | 58d36266323c1969336d597ab67ad56c75612744 /examples/tinyhttp.rs | |
parent | 31f71dedee6742015eed64c2f1c17c9be403a7bb (diff) |
Reexport Encoder, Decoder, Framed* from tokio::codec (#499)
Diffstat (limited to 'examples/tinyhttp.rs')
-rw-r--r-- | examples/tinyhttp.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/tinyhttp.rs b/examples/tinyhttp.rs index d56ff96f..1e4f22bd 100644 --- a/examples/tinyhttp.rs +++ b/examples/tinyhttp.rs @@ -21,7 +21,6 @@ extern crate serde_derive; extern crate serde_json; extern crate time; extern crate tokio; -extern crate tokio_codec; extern crate tokio_io; use std::{env, fmt, io}; @@ -29,8 +28,7 @@ use std::net::SocketAddr; use tokio::net::{TcpStream, TcpListener}; use tokio::prelude::*; - -use tokio_codec::{Encoder, Decoder}; +use tokio::codec::{Encoder, Decoder}; use bytes::BytesMut; use http::header::HeaderValue; |