Skip to content

Commit bae9b49

Browse files
committed
refactor!: add tree::diff() TBD
1 parent 2bbfe6d commit bae9b49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gix-diff/src/tree/changes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ fn handle_lhs_and_rhs_with_equal_filenames(
413413
Ok(())
414414
}
415415

416-
type IteratorType<I> = std::mem::ManuallyDrop<std::iter::Peekable<I>>;
416+
type IteratorType<I> = std::iter::Peekable<I>;
417417

418418
fn to_child(r: Option<Relation>) -> Option<Relation> {
419419
r.map(|r| match r {
@@ -423,7 +423,7 @@ fn to_child(r: Option<Relation>) -> Option<Relation> {
423423
}
424424

425425
fn peekable<I: Iterator>(iter: I) -> IteratorType<I> {
426-
std::mem::ManuallyDrop::new(iter.peekable())
426+
iter.peekable()
427427
}
428428

429429
#[cfg(test)]

0 commit comments

Comments
 (0)