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
View File
@@ -20,6 +20,7 @@ use std::task::{self, Poll, Waker};
use std::time::{Duration, Instant};
use std::{cmp, io};
use futures_core::ready;
use tokio_io::{AsyncRead, AsyncWrite};
use tokio_sync::mpsc;
use tokio_timer::{clock, timer, Delay};
-9
View File
@@ -20,15 +20,6 @@
//! assert_ready!(fut.poll());
//! ```
macro_rules! ready {
($e:expr) => {
match $e {
::std::task::Poll::Ready(t) => t,
::std::task::Poll::Pending => return ::std::task::Poll::Pending,
}
};
}
pub mod clock;
pub mod io;
mod macros;