Skip to content

Commit b979773

Browse files
committed
Follow clippys advice
1 parent fd09e2f commit b979773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stream/cycle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ where
4141
next = Some(val.clone())
4242
} else {
4343
*this.state = CycleState::FromBuffer;
44-
next = this.buffer.get(*this.index).map(|x| x.clone());
44+
next = this.buffer.get(*this.index).cloned();
4545
}
4646
} else {
4747
let mut index = *this.index;

0 commit comments

Comments
 (0)