Skip to content

Commit

Permalink
diff: impl Clone, Debug for DiffHunkIterator
Browse files Browse the repository at this point in the history
For consistency with the ranges iterator.
  • Loading branch information
yuja committed Nov 2, 2024
1 parent de2a8a5 commit f251f08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit f251f08

Please sign in to comment.