Skip to content

Commit 90d0103

Browse files
f Iterator::eq
1 parent 95c1303 commit 90d0103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/offers/static_invoice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ impl StaticInvoice {
315315
pub(crate) fn matches_invreq(&self, invreq: &InvoiceRequest) -> bool {
316316
let invoice_offer_tlv_stream = TlvStream::new(&self.bytes).range(OFFER_TYPES);
317317
let invreq_offer_tlv_stream = TlvStream::new(invreq.bytes()).range(OFFER_TYPES);
318-
invoice_offer_tlv_stream.zip(invreq_offer_tlv_stream).all(|(tlv1, tlv2)| tlv1 == tlv2)
318+
invoice_offer_tlv_stream.eq(invreq_offer_tlv_stream)
319319
}
320320
}
321321

0 commit comments

Comments
 (0)