File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 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;
22use std:: pin:: Pin ;
33use std:: task:: { Context , Poll } ;
44
5- use crate :: stream:: { Stream , DoubleEndedStream , ExactSizeStream , FusedStream } ;
5+ use crate :: stream:: { DoubleEndedStream , ExactSizeStream , FusedStream , Stream } ;
66
77/// A stream that never returns any items.
8- ///
8+ ///
99/// This stream is created by the [`pending`] function. See its
1010/// documentation for more.
11- ///
11+ ///
1212/// [`pending`]: fn.pending.html
1313#[ derive( Debug ) ]
1414pub struct Pending < T > {
15- _marker : PhantomData < T >
15+ _marker : PhantomData < T > ,
1616}
1717
1818/// Creates a stream that never returns any items.
19- ///
19+ ///
2020/// The returned stream will always return `Pending` when polled.
2121pub fn pending < T > ( ) -> Pending < T > {
22- Pending { _marker : PhantomData }
22+ Pending {
23+ _marker : PhantomData ,
24+ }
2325}
2426
2527impl < T > Stream for Pending < T > {
You can’t perform that action at this time.
0 commit comments