diff options
author | Taiki Endo <te316e89@gmail.com> | 2019-11-07 05:09:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-07 05:09:10 +0900 |
commit | 6f8b986bdb61843171ab90a1947349d5ac25576e (patch) | |
tree | eca5ee41f20bedf90376da6002d435d04dd7e229 /examples/chat.rs | |
parent | 1a7f6fb201c04e8bb02c6e59ddaabadceb8413c2 (diff) |
chore: update futures to 0.3.0 (#1741)
Diffstat (limited to 'examples/chat.rs')
-rw-r--r-- | examples/chat.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/chat.rs b/examples/chat.rs index 0a3976d5..e0213afd 100644 --- a/examples/chat.rs +++ b/examples/chat.rs @@ -30,7 +30,7 @@ use tokio::net::{TcpListener, TcpStream}; use tokio::sync::{mpsc, Mutex}; use tokio_util::codec::{Framed, LinesCodec, LinesCodecError}; -use futures::{Poll, SinkExt, Stream, StreamExt}; +use futures::{SinkExt, Stream, StreamExt}; use std::collections::HashMap; use std::env; use std::error::Error; @@ -38,7 +38,7 @@ use std::io; use std::net::SocketAddr; use std::pin::Pin; use std::sync::Arc; -use std::task::Context; +use std::task::{Context, Poll}; #[tokio::main] async fn main() -> Result<(), Box<dyn Error>> { |