File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -2,24 +2,26 @@ use std::marker::PhantomData;
2
2
use std:: pin:: Pin ;
3
3
use std:: task:: { Context , Poll } ;
4
4
5
- use crate :: stream:: { Stream , DoubleEndedStream , ExactSizeStream , FusedStream } ;
5
+ use crate :: stream:: { DoubleEndedStream , ExactSizeStream , FusedStream , Stream } ;
6
6
7
7
/// A stream that never returns any items.
8
- ///
8
+ ///
9
9
/// This stream is created by the [`pending`] function. See its
10
10
/// documentation for more.
11
- ///
11
+ ///
12
12
/// [`pending`]: fn.pending.html
13
13
#[ derive( Debug ) ]
14
14
pub struct Pending < T > {
15
- _marker : PhantomData < T >
15
+ _marker : PhantomData < T > ,
16
16
}
17
17
18
18
/// Creates a stream that never returns any items.
19
- ///
19
+ ///
20
20
/// The returned stream will always return `Pending` when polled.
21
21
pub fn pending < T > ( ) -> Pending < T > {
22
- Pending { _marker : PhantomData }
22
+ Pending {
23
+ _marker : PhantomData ,
24
+ }
23
25
}
24
26
25
27
impl < T > Stream for Pending < T > {
You can’t perform that action at this time.
0 commit comments