We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed5b095 commit 19381faCopy full SHA for 19381fa
src/stream/stream/cycle.rs
@@ -49,7 +49,7 @@ where
49
50
if let Some(val) = next {
51
this.buffer.push(val.clone());
52
- next = Some(val.clone())
+ next = Some(val)
53
} else {
54
*this.state = CycleState::FromBuffer;
55
next = this.buffer.get(*this.index).cloned();
0 commit comments