diff options
Diffstat (limited to 'examples/echo-udp.rs')
-rw-r--r-- | examples/echo-udp.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/echo-udp.rs b/examples/echo-udp.rs index 2ce43bc0..f7e2bf09 100644 --- a/examples/echo-udp.rs +++ b/examples/echo-udp.rs @@ -18,7 +18,7 @@ extern crate tokio_io; use std::{env, io}; use std::net::SocketAddr; -use futures::{future, Future, Poll}; +use futures::{Future, Poll}; use tokio::net::UdpSocket; struct Server { @@ -58,9 +58,9 @@ fn main() { // Next we'll create a future to spawn (the one we defined above) and then // we'll block our current thread waiting on the result of the future - future::blocking(Server { + Server { socket: socket, buf: vec![0; 1024], to_send: None, - }).wait().unwrap(); + }.wait().unwrap(); } |