Skip to content

Commit 72a20a4

Browse files
committed
rustfmt: Remove skip from request_refund_payment
1 parent c55c944 commit 72a20a4

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
@@ -12231,24 +12231,23 @@ where
1223112231
///
1223212232
/// [`BlindedPaymentPath`]: crate::blinded_path::payment::BlindedPaymentPath
1223312233
/// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
12234-
#[rustfmt::skip]
1223512234
pub fn request_refund_payment(
12236-
&self, refund: &Refund
12235+
&self, refund: &Refund,
1223712236
) -> Result<Bolt12Invoice, Bolt12SemanticError> {
1223812237
let secp_ctx = &self.secp_ctx;
12238+
let entropy = &*self.entropy_source;
1223912239

1224012240
let _persistence_guard = PersistenceNotifierGuard::notify_on_drop(self);
1224112241

12242-
let entropy = &*self.entropy_source;
1224312242
let builder = self.flow.create_invoice_builder_from_refund(
12244-
&self.router, entropy, refund, self.list_usable_channels(),
12243+
&self.router,
12244+
entropy,
12245+
refund,
12246+
self.list_usable_channels(),
1224512247
|amount_msats, relative_expiry| {
12246-
self.create_inbound_payment(
12247-
Some(amount_msats),
12248-
relative_expiry,
12249-
None
12250-
).map_err(|()| Bolt12SemanticError::InvalidAmount)
12251-
}
12248+
self.create_inbound_payment(Some(amount_msats), relative_expiry, None)
12249+
.map_err(|()| Bolt12SemanticError::InvalidAmount)
12250+
},
1225212251
)?;
1225312252

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

0 commit comments

Comments
 (0)