From 2e94b658ed161ef7207a8decb20564556e9883f8 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Thu, 1 Feb 2018 10:31:07 -0800 Subject: Track futures tokio-reform branch (#88) This patch also updates tests and examples to remove deprecated API usage. --- 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 f7e2bf09..2ce43bc0 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, Poll}; +use futures::{future, 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 - Server { + future::blocking(Server { socket: socket, buf: vec![0; 1024], to_send: None, - }.wait().unwrap(); + }).wait().unwrap(); } -- cgit v1.2.3