diff options
Diffstat (limited to 'src/libextra')
| -rw-r--r-- | src/libextra/dlist.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libextra/dlist.rs b/src/libextra/dlist.rs index 32079788942..4023a4d7e7f 100644 --- a/src/libextra/dlist.rs +++ b/src/libextra/dlist.rs @@ -47,13 +47,17 @@ struct Node<T> { } /// Double-ended DList iterator -#[deriving(Clone)] pub struct Items<'a, T> { priv head: &'a Link<T>, priv tail: Rawlink<Node<T>>, priv nelem: uint, } +// FIXME #11820: the &'a Option<> of the Link stops clone working. +impl<'a, T> Clone for Items<'a, T> { + fn clone(&self) -> Items<'a, T> { *self } +} + /// Double-ended mutable DList iterator pub struct MutItems<'a, T> { priv list: &'a mut DList<T>, |
