Skip to content

Commit e9357c0

Browse files
committed
style: Run cargo fmt
1 parent 879e14c commit e9357c0

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Diff for: src/stream/pending.rs

+8-6
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,26 @@ use std::marker::PhantomData;
22
use std::pin::Pin;
33
use 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)]
1414
pub 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.
2121
pub fn pending<T>() -> Pending<T> {
22-
Pending { _marker: PhantomData }
22+
Pending {
23+
_marker: PhantomData,
24+
}
2325
}
2426

2527
impl<T> Stream for Pending<T> {

0 commit comments

Comments
 (0)