Skip to content

Commit 2222818

Browse files
committedNov 20, 2018
Copy is best avoided on iterators
1 parent 544ad37 commit 2222818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/libcore/iter/sources.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ pub fn unfold<St, T, F>(initial_state: St, f: F) -> Unfold<St, F>
444444
/// See its documentation for more.
445445
///
446446
/// [`unfold`]: fn.unfold.html
447-
#[derive(Copy, Clone)]
447+
#[derive(Clone)]
448448
#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")]
449449
pub struct Unfold<St, F> {
450450
state: St,

0 commit comments

Comments
 (0)