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.
This commit is contained in:
commit
94d6a96189
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,7 @@ pub fn once<T>(value: T) -> Once<T> {
|
||||||
/// See its documentation for more.
|
/// See its documentation for more.
|
||||||
///
|
///
|
||||||
/// [`once_with`]: fn.once_with.html
|
/// [`once_with`]: fn.once_with.html
|
||||||
#[derive(Copy, Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
#[stable(feature = "iter_once_with", since = "1.43.0")]
|
#[stable(feature = "iter_once_with", since = "1.43.0")]
|
||||||
pub struct OnceWith<F> {
|
pub struct OnceWith<F> {
|
||||||
gen: Option<F>,
|
gen: Option<F>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue