We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 987c816 commit a38d8c4Copy full SHA for a38d8c4
src/io/timeout.rs
@@ -1,8 +1,6 @@
1
use std::pin::Pin;
2
use std::task::{Context, Poll};
3
use std::time::Duration;
4
-use std::task::{Context, Poll};
5
-use std::pin::Pin;
6
7
use futures_timer::Delay;
8
use pin_utils::unsafe_pinned;
@@ -41,7 +39,8 @@ where
41
39
Timeout {
42
40
timeout: Delay::new(dur),
43
future: f,
44
- }.await
+ }
+ .await
45
}
46
47
/// Future returned by the `FutureExt::timeout` method.
@@ -63,7 +62,6 @@ where
63
62
64
65
impl<F, T> Future for Timeout<F, T>
66
->>>>>>> 01f8584... add stream::interval
67
where
68
F: Future<Output = io::Result<T>>,
69
{
0 commit comments