Skip to content

Commit 001368d

Browse files
committed
$cargo fmt
1 parent 00e7e58 commit 001368d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/stream/stream/flatten.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use std::pin::Pin;
21
use pin_project_lite::pin_project;
2+
use std::pin::Pin;
33

44
use crate::prelude::*;
55
use crate::stream::stream::map::Map;
@@ -25,7 +25,6 @@ where
2525
U: IntoStream,
2626
F: FnMut(S::Item) -> U,
2727
{
28-
2928
pub fn new(stream: S, f: F) -> FlatMap<S, U, S::Item, F> {
3029
FlatMap {
3130
inner: FlattenCompat::new(stream.map(f)),
@@ -46,7 +45,7 @@ where
4645
}
4746
}
4847

49-
pin_project!{
48+
pin_project! {
5049
/// This `struct` is created by the [`flatten`] method on [`Stream`]. See its
5150
/// documentation for more.
5251
///
@@ -61,7 +60,9 @@ pin_project!{
6160

6261
impl<S: Stream<Item: IntoStream>> Flatten<S, S::Item> {
6362
pub fn new(stream: S) -> Flatten<S, S::Item> {
64-
Flatten { inner: FlattenCompat::new(stream) }
63+
Flatten {
64+
inner: FlattenCompat::new(stream),
65+
}
6566
}
6667
}
6768

@@ -77,7 +78,6 @@ where
7778
}
7879
}
7980

80-
8181
pin_project! {
8282
/// Real logic of both `Flatten` and `FlatMap` which simply delegate to
8383
/// this type.

0 commit comments

Comments
 (0)