We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tree::diff()
1 parent 2bbfe6d commit bae9b49Copy full SHA for bae9b49
gix-diff/src/tree/changes.rs
@@ -413,7 +413,7 @@ fn handle_lhs_and_rhs_with_equal_filenames(
413
Ok(())
414
}
415
416
-type IteratorType<I> = std::mem::ManuallyDrop<std::iter::Peekable<I>>;
+type IteratorType<I> = std::iter::Peekable<I>;
417
418
fn to_child(r: Option<Relation>) -> Option<Relation> {
419
r.map(|r| match r {
@@ -423,7 +423,7 @@ fn to_child(r: Option<Relation>) -> Option<Relation> {
423
424
425
fn peekable<I: Iterator>(iter: I) -> IteratorType<I> {
426
- std::mem::ManuallyDrop::new(iter.peekable())
+ iter.peekable()
427
428
429
#[cfg(test)]
0 commit comments