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:
parent
fd09e2f248
commit
b979773505
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue