From f0ea9d6f4c0a734ac4c235630f3d8cc51fb48f51 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Tue, 6 Feb 2018 07:26:21 -0800 Subject: Switch back to futures from crates.io (#113) Doing so requires copying the `current_thread` executor from GitHub into the repo. --- examples/echo-udp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/echo-udp.rs') 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(); } -- cgit v1.2.3