Skip to content

Commit 077040f

Browse files
committed
Use into instead of repeating macro argument
1 parent 43fe279 commit 077040f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/adaptors/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ macro_rules! impl_tuple_combination {
748748
Self {
749749
item: iter.next(),
750750
iter: iter.clone(),
751-
c: $P::from(iter),
751+
c: iter.into(),
752752
}
753753
}
754754
}
@@ -772,7 +772,7 @@ macro_rules! impl_tuple_combination {
772772
} else {
773773
self.item = self.iter.next();
774774
self.item.clone().and_then(|z| {
775-
self.c = $P::from(self.iter.clone());
775+
self.c = self.iter.clone().into();
776776
self.c.next().map(|($($X),*,)| (z, $($X),*))
777777
})
778778
}

0 commit comments

Comments
 (0)