implement feedback & fix tests

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
pull/209/head
Yoshua Wuyts 5 years ago
parent 2964e72b00
commit c533d5f906
No known key found for this signature in database
GPG Key ID: 24EA8164F96777ED

@ -64,4 +64,4 @@ matrix:
script:
- cargo check --features unstable --all --benches --bins --examples --tests
- cargo test --features unstable --all
- cargo test --all --docs --features unstable

@ -56,13 +56,10 @@ pub mod task;
cfg_if! {
if #[cfg(any(feature = "unstable", feature = "docs"))] {
pub mod pin;
mod vec;
mod result;
}
}
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
#[cfg(feature = "unstable")]
pub mod pin;
pub(crate) mod utils;

@ -96,6 +96,7 @@ cfg_if! {
($a:lifetime, $o:ty) => (DynFuture<$a, $o>);
}
} else {
#[allow(unused_macros)]
macro_rules! dyn_ret {
($a:lifetime, $o:ty) => (Pin<Box<dyn core::future::Future<Output = $o> + Send + 'a>>)
}

Loading…
Cancel
Save