2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-03-01 15:49:41 +00:00

Follow clippys advice

This commit is contained in:
Felipe Sere 2019-10-29 09:10:18 -05:00
parent fd09e2f248
commit b979773505

View file

@ -41,7 +41,7 @@ where
next = Some(val.clone()) next = Some(val.clone())
} else { } else {
*this.state = CycleState::FromBuffer; *this.state = CycleState::FromBuffer;
next = this.buffer.get(*this.index).map(|x| x.clone()); next = this.buffer.get(*this.index).cloned();
} }
} else { } else {
let mut index = *this.index; let mut index = *this.index;