Skip to content

Commit

Permalink
Remove Copy impl from OnceWith
Browse files Browse the repository at this point in the history
Iterators typically don't implement `Copy` and this shouldn't be an exception.
  • Loading branch information
ollie27 committed Feb 3, 2020
1 parent 8417d68 commit 5f689fe
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 5f689fe

Please sign in to comment.