diff --git a/src/groupbylazy.rs b/src/groupbylazy.rs index af7512343..ee635b4b8 100644 --- a/src/groupbylazy.rs +++ b/src/groupbylazy.rs @@ -653,6 +653,20 @@ where first: Option, } +impl<'a, I> Clone for Chunk<'a, I> +where + I: Iterator, + I::Item: 'a + Clone, +{ + fn clone(&self) -> Self { + Self { + parent: self.parent, + index: self.index, + first: self.first.clone(), + } + } +} + impl<'a, I> Drop for Chunk<'a, I> where I: Iterator,