summaryrefslogtreecommitdiffstats
path: root/examples/chat.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/chat.rs')
-rw-r--r--examples/chat.rs4
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>> {