chore: use ready macro from futures-core (#1300)

This commit is contained in:
Gurwinder Singh
2019-07-15 10:43:54 -07:00
committed by Carl Lerche
parent ca708d6d87
commit 83273b8b50
48 changed files with 42 additions and 137 deletions
+1 -9
View File
@@ -5,6 +5,7 @@ use tokio_test::*;
use tokio_threadpool::*;
use async_util::future::poll_fn;
use futures_core::ready;
use rand::*;
use std::sync::atomic::Ordering::*;
use std::sync::atomic::*;
@@ -13,15 +14,6 @@ use std::task::{Poll, Waker};
use std::thread;
use std::time::Duration;
macro_rules! ready {
($e:expr) => {
match $e {
::std::task::Poll::Ready(t) => t,
::std::task::Poll::Pending => return ::std::task::Poll::Pending,
}
};
}
#[test]
fn basic() {
let _ = ::env_logger::try_init();