Skip to content

Commit 5f689fe

Browse files
committed
Remove Copy impl from OnceWith
Iterators typically don't implement `Copy` and this shouldn't be an exception.
1 parent 8417d68 commit 5f689fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/iter/sources.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ pub fn once<T>(value: T) -> Once<T> {
398398
/// See its documentation for more.
399399
///
400400
/// [`once_with`]: fn.once_with.html
401-
#[derive(Copy, Clone, Debug)]
401+
#[derive(Clone, Debug)]
402402
#[stable(feature = "iter_once_with", since = "1.43.0")]
403403
pub struct OnceWith<F> {
404404
gen: Option<F>,

0 commit comments

Comments
 (0)