Skip to content

Commit d2ffeff

Browse files
authored
Merge pull request #3731 from dunxen/2025-04-lintfixfromsameoffer
Change method name `from_same_offer` to `is_from_same_offer`
2 parents 85185d8 + 4c61078 commit d2ffeff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lightning/src/ln/outbound_payment.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ impl OutboundPayments {
11141114
.as_ref()
11151115
.ok_or(Bolt12PaymentError::UnexpectedInvoice)?
11161116
.invoice_request;
1117-
if !invoice.from_same_offer(invreq) {
1117+
if !invoice.is_from_same_offer(invreq) {
11181118
return Err(Bolt12PaymentError::UnexpectedInvoice)
11191119
}
11201120
if invoice.invoice_features().requires_unknown_bits_from(&features) {

lightning/src/offers/static_invoice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ impl StaticInvoice {
390390
}
391391

392392
#[allow(unused)] // TODO: remove this once we remove the `async_payments` cfg flag
393-
pub(crate) fn from_same_offer(&self, invreq: &InvoiceRequest) -> bool {
393+
pub(crate) fn is_from_same_offer(&self, invreq: &InvoiceRequest) -> bool {
394394
let invoice_offer_tlv_stream =
395395
Offer::tlv_stream_iter(&self.bytes).map(|tlv_record| tlv_record.record_bytes);
396396
let invreq_offer_tlv_stream =

0 commit comments

Comments
 (0)