Skip to content

Commit 70ae0f9

Browse files
committed
Remove constraints from Repeat and RepeatN
1 parent ca92786 commit 70ae0f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/iter/repeat.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::iter;
44

55
/// Iterator adaptor for [the `repeat()` function](fn.repeat.html).
66
#[derive(Debug, Clone)]
7-
pub struct Repeat<T: Clone + Send> {
7+
pub struct Repeat<T> {
88
element: T,
99
}
1010

@@ -99,7 +99,7 @@ impl<T: Clone + Send> UnindexedProducer for RepeatProducer<T> {
9999

100100
/// Iterator adaptor for [the `repeat_n()` function](fn.repeat_n.html).
101101
#[derive(Debug, Clone)]
102-
pub struct RepeatN<T: Clone + Send> {
102+
pub struct RepeatN<T> {
103103
element: T,
104104
count: usize,
105105
}

0 commit comments

Comments
 (0)