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 fd09e2f commit b979773Copy full SHA for b979773
src/stream/cycle.rs
@@ -41,7 +41,7 @@ where
41
next = Some(val.clone())
42
} else {
43
*this.state = CycleState::FromBuffer;
44
- next = this.buffer.get(*this.index).map(|x| x.clone());
+ next = this.buffer.get(*this.index).cloned();
45
}
46
47
let mut index = *this.index;
0 commit comments