From 04ed22a35657fc3eb1ab054d7560ce74f7fc2e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 6 Jul 2019 09:56:34 +0300 Subject: [PATCH] examples/futures: Use future::pending() instead of future::empty() It was renamed in the last release. --- examples/src/bin/futures.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/src/bin/futures.rs b/examples/src/bin/futures.rs index 6eaac7bac..cc0d6275f 100644 --- a/examples/src/bin/futures.rs +++ b/examples/src/bin/futures.rs @@ -37,7 +37,8 @@ fn example_main() { // We use an AbortHandle for having a Future that runs forever // until we call handle.abort() to quit our event loop let (quit_handle, quit_registration) = future::AbortHandle::new_pair(); - let quit_future = future::Abortable::new(future::empty::<()>(), quit_registration).map(|_| ()); + let quit_future = + future::Abortable::new(future::pending::<()>(), quit_registration).map(|_| ()); // BusStream implements the Stream trait. Stream::for_each is calling a closure for each item // and returns a Future that resolves when the stream is done