One clippy warning

This commit is contained in:
Felipe Sere 2019-10-29 17:15:49 -05:00
parent ed5b095c73
commit 19381fa590

View file

@ -49,7 +49,7 @@ where
if let Some(val) = next {
this.buffer.push(val.clone());
next = Some(val.clone())
next = Some(val)
} else {
*this.state = CycleState::FromBuffer;
next = this.buffer.get(*this.index).cloned();