diff options
Diffstat (limited to 'examples/proxy.rs')
-rw-r--r-- | examples/proxy.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/proxy.rs b/examples/proxy.rs index f73dd30d..131fa41b 100644 --- a/examples/proxy.rs +++ b/examples/proxy.rs @@ -28,7 +28,7 @@ use std::io::{self, Read, Write}; use futures::stream::Stream; use futures::{Future, Poll}; -use futures::future::{self, Executor}; +use futures::future::{Executor}; use futures_cpupool::CpuPool; use tokio::net::{TcpListener, TcpStream}; use tokio_io::{AsyncRead, AsyncWrite}; @@ -92,7 +92,8 @@ fn main() { Ok(()) }); - future::blocking(done).wait().unwrap(); + + done.wait().unwrap(); } // This is a custom type used to have a custom implementation of the |