Skip to content

Commit b68eedf

Browse files
committed
option: derive Clone/DeepClone for the iterator
1 parent 25bac77 commit b68eedf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/option.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ impl<T> Zero for Option<T> {
388388
}
389389

390390
/// An iterator that yields either one or zero elements
391+
#[deriving(Clone, DeepClone)]
391392
pub struct OptionIterator<A> {
392393
priv opt: Option<A>
393394
}

0 commit comments

Comments
 (0)