Skip to content

Commit 8464306

Browse files
authored
Merge pull request #44 from async-rs/remove-futures-core-dep
remove futures-core dep
2 parents 945a829 + e69c500 commit 8464306

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Timeouts and intervals for futures.
1313
"""
1414

1515
[dependencies]
16-
futures-core = "0.3.1"
1716

1817
[dev-dependencies]
1918
async-std = { version = "1.0.1", features = ["attributes"] }

src/atomic_waker.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,14 @@ impl AtomicWaker {
7474
/// Here is how `register` is used when implementing a flag.
7575
///
7676
/// ```
77-
/// use futures::future::Future;
78-
/// use futures::task::{Context, Poll, AtomicWaker};
77+
/// use std::future::Future;
78+
/// use std::task::{Context, Poll};
7979
/// use std::sync::atomic::AtomicBool;
8080
/// use std::sync::atomic::Ordering::SeqCst;
8181
/// use std::pin::Pin;
8282
///
83+
/// use futures::task::AtomicWaker;
84+
///
8385
/// struct Flag {
8486
/// waker: AtomicWaker,
8587
/// set: AtomicBool,

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//! # async fn main() {
88
//! use std::time::Duration;
99
//! use futures_timer::Delay;
10-
//! use futures::prelude::*;
1110
//!
1211
//! let now = Delay::new(Duration::from_secs(3)).await;
1312
//! println!("waited for 3 secs");

src/timer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::sync::{Arc, Mutex, Weak};
77
use std::task::{Context, Poll};
88
use std::time::Instant;
99

10-
use futures_core::future::Future;
10+
use std::future::Future;
1111

1212
use crate::AtomicWaker;
1313
use crate::{global, ArcList, Heap, HeapTimer, Node, Slot};

0 commit comments

Comments
 (0)