2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-03-28 20:16:41 +00:00

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 { if let Some(val) = next {
this.buffer.push(val.clone()); this.buffer.push(val.clone());
next = Some(val.clone()) next = Some(val)
} else { } else {
*this.state = CycleState::FromBuffer; *this.state = CycleState::FromBuffer;
next = this.buffer.get(*this.index).cloned(); next = this.buffer.get(*this.index).cloned();