Follow clippys advice

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

@ -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…
Cancel
Save