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
-13
View File
@@ -1,19 +1,6 @@
#![deny(warnings, rust_2018_idioms)]
#![feature(async_await)]
/// Unwrap a ready value or propagate `Async::Pending`.
#[macro_export]
macro_rules! ready {
($e:expr) => {{
use std::task::Poll::{Pending, Ready};
match $e {
Ready(v) => v,
Pending => return Pending,
}
}};
}
#[path = "../src/oneshot.rs"]
#[allow(warnings)]
mod oneshot;