diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-02-04 21:51:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-04 21:51:53 +0100 |
| commit | 94d6a961897db91b9b11222e7f667d73b6bbe9bf (patch) | |
| tree | 5b481750dbd4c87f0fdc36828bd03be392147ec0 | |
| parent | 4d6e2d81b8fbff97e428526fd3c3b662270f2475 (diff) | |
| parent | 5f689fe466b6ed0d63e5d5f732804bb74c07b58d (diff) | |
| download | rust-94d6a961897db91b9b11222e7f667d73b6bbe9bf.tar.gz rust-94d6a961897db91b9b11222e7f667d73b6bbe9bf.zip | |
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.
| -rw-r--r-- | src/libcore/iter/sources.rs | 2 |
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>, |
