Skip to content

Commit 94d6a96

Browse files
authored
Rollup merge of #68810 - ollie27:once_with_copy, r=Dylan-DPC
Remove Copy impl from OnceWith Iterators typically don't implement `Copy` and this shouldn't be an exception.
2 parents 4d6e2d8 + 5f689fe commit 94d6a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/iter/sources.rs

+1-1
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)