Skip to content

Commit 70077b2

Browse files
committed
fixup! Fix Formattting Issues
1 parent 5b0d9df commit 70077b2

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl Default for Config {
192192
}
193193

194194
/// Configuration options for Human-Readable Names ([BIP 353]).
195-
///
195+
///
196196
/// [BIP 353]: https://github.com/bitcoin/bips/blob/master/bip-0353.mediawiki
197197
#[derive(Debug, Clone)]
198198
pub struct HumanReadableNamesConfig {

src/event.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,9 @@ where
14321432
},
14331433
};
14341434

1435-
let _ = self.channel_manager.send_payment_for_bolt12_invoice(&invoice, context.as_ref());
1435+
let _ = self
1436+
.channel_manager
1437+
.send_payment_for_bolt12_invoice(&invoice, context.as_ref());
14361438
},
14371439
LdkEvent::ConnectionNeeded { node_id, addresses } => {
14381440
let runtime_lock = self.runtime.read().unwrap();

src/payment/bolt12.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,13 @@ impl Bolt12Payment {
331331
destinations,
332332
) {
333333
Ok(()) => {
334-
log_info!(self.logger, "Initiated sending {} msats to ₿{}@{}", amount_msat, hrn.user(), hrn.domain());
334+
log_info!(
335+
self.logger,
336+
"Initiated sending {} msats to ₿{}@{}",
337+
amount_msat,
338+
hrn.user(),
339+
hrn.domain()
340+
);
335341
let kind = PaymentKind::Bolt12Offer {
336342
hash: None,
337343
preimage: None,
@@ -352,7 +358,12 @@ impl Bolt12Payment {
352358
Ok(payment_id)
353359
},
354360
Err(()) => {
355-
log_error!(self.logger, "Failed to send payment to ₿{}@{}", hrn.user(), hrn.domain());
361+
log_error!(
362+
self.logger,
363+
"Failed to send payment to ₿{}@{}",
364+
hrn.user(),
365+
hrn.domain()
366+
);
356367
let kind = PaymentKind::Bolt12Offer {
357368
hash: None,
358369
preimage: None,

src/payment/store.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,9 @@ pub enum PaymentKind {
404404
/// The secret used by the payment.
405405
secret: Option<PaymentSecret>,
406406
/// The ID of the offer this payment is for.
407-
///
407+
///
408408
/// This will be set to `None` when sending payments to Human-Readable Names ([BIP 353]).
409-
///
409+
///
410410
/// [BIP 353]: https://github.com/bitcoin/bips/blob/master/bip-0353.mediawiki
411411
offer_id: Option<OfferId>,
412412
/// The payer note for the payment.

0 commit comments

Comments
 (0)