mirror of https://github.com/rust-lang/rust.git
Remove Copy impl from OnceWith
Iterators typically don't implement `Copy` and this shouldn't be an exception.
This commit is contained in:
parent
8417d68de5
commit
5f689fe466
|
@ -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>,
|
||||
|
|
Loading…
Reference in New Issue