Remove Copy impl from OnceWith

Iterators typically don't implement `Copy` and this shouldn't be an exception.
This commit is contained in:
Oliver Middleton 2020-02-03 22:30:17 +00:00
parent 8417d68de5
commit 5f689fe466
1 changed files with 1 additions and 1 deletions

View File

@ -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>,