1
Fork 0

Fix pattern matching mode changes and unsafe_op_in_unsafe_fn

This commit is contained in:
Michael Goulet 2025-02-07 18:35:46 +00:00
parent a4e7f8f9bf
commit 4312d7b541
3 changed files with 10 additions and 6 deletions

View file

@ -74,7 +74,7 @@ impl<I: Iterator> MergeIterInner<I> {
b_next = self.b.next();
}
}
if let (Some(ref a1), Some(ref b1)) = (&a_next, &b_next) {
if let (Some(a1), Some(b1)) = (&a_next, &b_next) {
match cmp(a1, b1) {
Ordering::Less => self.peeked = b_next.take().map(Peeked::B),
Ordering::Greater => self.peeked = a_next.take().map(Peeked::A),