Skip to content

Commit 6e197de

Browse files
committed
rustfmt: Remove skip from request_refund_payment
1 parent d2dd871 commit 6e197de

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12728,24 +12728,23 @@ where
1272812728
///
1272912729
/// [`BlindedPaymentPath`]: crate::blinded_path::payment::BlindedPaymentPath
1273012730
/// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
12731-
#[rustfmt::skip]
1273212731
pub fn request_refund_payment(
12733-
&self, refund: &Refund
12732+
&self, refund: &Refund,
1273412733
) -> Result<Bolt12Invoice, Bolt12SemanticError> {
1273512734
let secp_ctx = &self.secp_ctx;
12735+
let entropy = &*self.entropy_source;
1273612736

1273712737
let _persistence_guard = PersistenceNotifierGuard::notify_on_drop(self);
1273812738

12739-
let entropy = &*self.entropy_source;
1274012739
let builder = self.flow.create_invoice_builder_from_refund(
12741-
&self.router, entropy, refund, self.list_usable_channels(),
12740+
&self.router,
12741+
entropy,
12742+
refund,
12743+
self.list_usable_channels(),
1274212744
|amount_msats, relative_expiry| {
12743-
self.create_inbound_payment(
12744-
Some(amount_msats),
12745-
relative_expiry,
12746-
None
12747-
).map_err(|()| Bolt12SemanticError::InvalidAmount)
12748-
}
12745+
self.create_inbound_payment(Some(amount_msats), relative_expiry, None)
12746+
.map_err(|()| Bolt12SemanticError::InvalidAmount)
12747+
},
1274912748
)?;
1275012749

1275112750
let invoice = builder.allow_mpp().build_and_sign(secp_ctx)?;

0 commit comments

Comments
 (0)