Skip to content

Commit 1af9ee1

Browse files
committed
core::iter::repeat_with: derive Copy, Clone, Debug
1 parent c4099ca commit 1af9ee1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/iter/sources.rs

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ pub fn repeat<T: Clone>(elt: T) -> Repeat<T> {
112112
/// See its documentation for more.
113113
///
114114
/// [`repeat_with`]: fn.repeat_with.html
115+
#[derive(Copy, Clone, Debug)]
115116
#[unstable(feature = "iterator_repeat_with", issue = "0")]
116117
pub struct RepeatWith<F> {
117118
repeater: F

0 commit comments

Comments
 (0)