forked from mirror/async-std
One clippy warning
This commit is contained in:
parent
ed5b095c73
commit
19381fa590
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue