Skip to content

Commit a38d8c4

Browse files
committed
cargo fmt
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
1 parent 987c816 commit a38d8c4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/io/timeout.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
use std::pin::Pin;
22
use std::task::{Context, Poll};
33
use std::time::Duration;
4-
use std::task::{Context, Poll};
5-
use std::pin::Pin;
64

75
use futures_timer::Delay;
86
use pin_utils::unsafe_pinned;
@@ -41,7 +39,8 @@ where
4139
Timeout {
4240
timeout: Delay::new(dur),
4341
future: f,
44-
}.await
42+
}
43+
.await
4544
}
4645

4746
/// Future returned by the `FutureExt::timeout` method.
@@ -63,7 +62,6 @@ where
6362
}
6463

6564
impl<F, T> Future for Timeout<F, T>
66-
>>>>>>> 01f8584... add stream::interval
6765
where
6866
F: Future<Output = io::Result<T>>,
6967
{

0 commit comments

Comments
 (0)