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.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/echo.rs') diff --git a/examples/echo.rs b/examples/echo.rs index 54a28ff7..558f3a68 100644 --- a/examples/echo.rs +++ b/examples/echo.rs @@ -26,7 +26,7 @@ use std::env; use std::net::SocketAddr; use futures::Future; -use futures::future::{self, Executor}; +use futures::future::Executor; use futures::stream::Stream; use futures_cpupool::CpuPool; use tokio_io::AsyncRead; @@ -114,5 +114,5 @@ fn main() { // And finally now that we've define what our server is, we run it! Here we // just need to execute the future we've created and wait for it to complete // using the standard methods in the `futures` crate. - future::blocking(done).wait().unwrap(); + done.wait().unwrap(); } -- cgit v1.2.3