From f251f08ce709378fa44722a4e930d5d287ccdf15 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Sat, 21 Sep 2024 17:08:49 +0900 Subject: [PATCH] diff: impl Clone, Debug for DiffHunkIterator For consistency with the ranges iterator. --- lib/src/diff.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/diff.rs b/lib/src/diff.rs index 4e24cc1906..7de58ca483 100644 --- a/lib/src/diff.rs +++ b/lib/src/diff.rs @@ -839,6 +839,7 @@ pub enum DiffHunkKind { pub type DiffHunkContentVec<'input> = SmallVec<[&'input BStr; 2]>; /// Iterator over matching and different texts. +#[derive(Clone, Debug)] pub struct DiffHunkIterator<'diff, 'input> { diff: &'diff Diff<'input>, ranges: DiffHunkRangeIterator<'diff>,