Follow clippys advice

poc-serde-support
Felipe Sere 5 years ago
parent fd09e2f248
commit b979773505

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

Loading…
Cancel
Save