Skip to content

Commit fd09e2f

Browse files
committed
Run fmt
1 parent 171cc82 commit fd09e2f

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/stream/cycle.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@ enum CycleState {
2222
FromBuffer,
2323
}
2424

25-
impl<S, T> Stream for Cycle<S,T>
26-
where
27-
S: Stream<Item = T>,
28-
T: Clone,
29-
25+
impl<S, T> Stream for Cycle<S, T>
26+
where
27+
S: Stream<Item = T>,
28+
T: Clone,
3029
{
31-
3230
type Item = S::Item;
3331

3432
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
@@ -47,7 +45,7 @@ impl<S, T> Stream for Cycle<S,T>
4745
}
4846
} else {
4947
let mut index = *this.index;
50-
if index == this.buffer.len() {
48+
if index == this.buffer.len() {
5149
index = 0
5250
}
5351
next = Some(this.buffer[index].clone());

0 commit comments

Comments
 (0)