about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Middleton <olliemail27@gmail.com>2020-02-03 22:30:17 +0000
committerOliver Middleton <olliemail27@gmail.com>2020-02-03 22:30:17 +0000
commit5f689fe466b6ed0d63e5d5f732804bb74c07b58d (patch)
treefc78a817f866618c3d4e21d8f07618bafbe9a4ac
parent8417d68de5e063426ab6bb7f383df6117d1beeed (diff)
downloadrust-5f689fe466b6ed0d63e5d5f732804bb74c07b58d.tar.gz
rust-5f689fe466b6ed0d63e5d5f732804bb74c07b58d.zip
Remove Copy impl from OnceWith
Iterators typically don't implement `Copy` and this shouldn't be an exception.
-rw-r--r--src/libcore/iter/sources.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/iter/sources.rs b/src/libcore/iter/sources.rs
index 5a31acab273..a1d4e1b31e9 100644
--- a/src/libcore/iter/sources.rs
+++ b/src/libcore/iter/sources.rs
@@ -398,7 +398,7 @@ pub fn once<T>(value: T) -> Once<T> {
 /// See its documentation for more.
 ///
 /// [`once_with`]: fn.once_with.html
-#[derive(Copy, Clone, Debug)]
+#[derive(Clone, Debug)]
 #[stable(feature = "iter_once_with", since = "1.43.0")]
 pub struct OnceWith<F> {
     gen: Option<F>,