Skip to content

Commit

Permalink
Rollup merge of rust-lang#68810 - ollie27:once_with_copy, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Remove Copy impl from OnceWith

Iterators typically don't implement `Copy` and this shouldn't be an exception.
  • Loading branch information
Dylan-DPC authored Feb 4, 2020
2 parents 4d6e2d8 + 5f689fe commit 94d6a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/iter/sources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit 94d6a96

Please sign in to comment.