@@ -407,7 +407,8 @@ impl Bolt11Payment {
407407 /// The inbound payment will be automatically claimed upon arrival.
408408 #[ cfg( not( feature = "uniffi" ) ) ]
409409 pub fn receive (
410- & self , amount_msat : u64 , description : & lightning_invoice:: Bolt11InvoiceDescription , expiry_secs : u32 ,
410+ & self , amount_msat : u64 , description : & lightning_invoice:: Bolt11InvoiceDescription ,
411+ expiry_secs : u32 ,
411412 ) -> Result < Bolt11Invoice , Error > {
412413 self . receive_inner ( Some ( amount_msat) , description, expiry_secs, None )
413414 }
@@ -416,7 +417,8 @@ impl Bolt11Payment {
416417 pub fn receive (
417418 & self , amount_msat : u64 , description : & Bolt11InvoiceDescription , expiry_secs : u32 ,
418419 ) -> Result < Bolt11Invoice , Error > {
419- let invoice_description = lightning_invoice:: Bolt11InvoiceDescription :: try_from ( description) ?;
420+ let invoice_description =
421+ lightning_invoice:: Bolt11InvoiceDescription :: try_from ( description) ?;
420422 self . receive_inner ( Some ( amount_msat) , & invoice_description, expiry_secs, None )
421423 }
422424
@@ -436,8 +438,8 @@ impl Bolt11Payment {
436438 /// [`fail_for_hash`]: Self::fail_for_hash
437439 #[ cfg( not( feature = "uniffi" ) ) ]
438440 pub fn receive_for_hash (
439- & self , amount_msat : u64 , description : & lightning_invoice:: Bolt11InvoiceDescription , expiry_secs : u32 ,
440- payment_hash : PaymentHash ,
441+ & self , amount_msat : u64 , description : & lightning_invoice:: Bolt11InvoiceDescription ,
442+ expiry_secs : u32 , payment_hash : PaymentHash ,
441443 ) -> Result < Bolt11Invoice , Error > {
442444 self . receive_inner ( Some ( amount_msat) , description, expiry_secs, Some ( payment_hash) )
443445 }
@@ -447,7 +449,8 @@ impl Bolt11Payment {
447449 & self , amount_msat : u64 , description : & Bolt11InvoiceDescription , expiry_secs : u32 ,
448450 payment_hash : PaymentHash ,
449451 ) -> Result < Bolt11Invoice , Error > {
450- let invoice_description = lightning_invoice:: Bolt11InvoiceDescription :: try_from ( description) ?;
452+ let invoice_description =
453+ lightning_invoice:: Bolt11InvoiceDescription :: try_from ( description) ?;
451454 self . receive_inner ( Some ( amount_msat) , & invoice_description, expiry_secs, Some ( payment_hash) )
452455 }
453456
@@ -466,7 +469,8 @@ impl Bolt11Payment {
466469 pub fn receive_variable_amount (
467470 & self , description : & Bolt11InvoiceDescription , expiry_secs : u32 ,
468471 ) -> Result < Bolt11Invoice , Error > {
469- let invoice_description = lightning_invoice:: Bolt11InvoiceDescription :: try_from ( description) ?;
472+ let invoice_description =
473+ lightning_invoice:: Bolt11InvoiceDescription :: try_from ( description) ?;
470474 self . receive_inner ( None , & invoice_description, expiry_secs, None )
471475 }
472476
@@ -486,23 +490,25 @@ impl Bolt11Payment {
486490 /// [`fail_for_hash`]: Self::fail_for_hash
487491 #[ cfg( not( feature = "uniffi" ) ) ]
488492 pub fn receive_variable_amount_for_hash (
489- & self , description : & lightning_invoice:: Bolt11InvoiceDescription , expiry_secs : u32 , payment_hash : PaymentHash ,
493+ & self , description : & lightning_invoice:: Bolt11InvoiceDescription , expiry_secs : u32 ,
494+ payment_hash : PaymentHash ,
490495 ) -> Result < Bolt11Invoice , Error > {
491496 self . receive_inner ( None , description, expiry_secs, Some ( payment_hash) )
492497 }
493498
494499 #[ cfg( feature = "uniffi" ) ]
495500 pub fn receive_variable_amount_for_hash (
496- & self , description : & Bolt11InvoiceDescription , expiry_secs : u32 ,
497- payment_hash : PaymentHash ,
501+ & self , description : & Bolt11InvoiceDescription , expiry_secs : u32 , payment_hash : PaymentHash ,
498502 ) -> Result < Bolt11Invoice , Error > {
499- let invoice_description = lightning_invoice:: Bolt11InvoiceDescription :: try_from ( description) ?;
503+ let invoice_description =
504+ lightning_invoice:: Bolt11InvoiceDescription :: try_from ( description) ?;
500505 self . receive_inner ( None , & invoice_description, expiry_secs, Some ( payment_hash) )
501506 }
502507
503508 pub ( crate ) fn receive_inner (
504- & self , amount_msat : Option < u64 > , invoice_description : & lightning_invoice:: Bolt11InvoiceDescription ,
505- expiry_secs : u32 , manual_claim_payment_hash : Option < PaymentHash > ,
509+ & self , amount_msat : Option < u64 > ,
510+ invoice_description : & lightning_invoice:: Bolt11InvoiceDescription , expiry_secs : u32 ,
511+ manual_claim_payment_hash : Option < PaymentHash > ,
506512 ) -> Result < Bolt11Invoice , Error > {
507513 let invoice = {
508514 let invoice_params = Bolt11InvoiceParameters {
@@ -569,8 +575,8 @@ impl Bolt11Payment {
569575 /// [LSPS2]: https://github.com/BitcoinAndLightningLayerSpecs/lsp/blob/main/LSPS2/README.md
570576 #[ cfg( not( feature = "uniffi" ) ) ]
571577 pub fn receive_via_jit_channel (
572- & self , amount_msat : u64 , description : & lightning_invoice:: Bolt11InvoiceDescription , expiry_secs : u32 ,
573- max_total_lsp_fee_limit_msat : Option < u64 > ,
578+ & self , amount_msat : u64 , description : & lightning_invoice:: Bolt11InvoiceDescription ,
579+ expiry_secs : u32 , max_total_lsp_fee_limit_msat : Option < u64 > ,
574580 ) -> Result < Bolt11Invoice , Error > {
575581 self . receive_via_jit_channel_inner (
576582 Some ( amount_msat) ,
@@ -586,7 +592,8 @@ impl Bolt11Payment {
586592 & self , amount_msat : u64 , description : & Bolt11InvoiceDescription , expiry_secs : u32 ,
587593 max_total_lsp_fee_limit_msat : Option < u64 > ,
588594 ) -> Result < Bolt11Invoice , Error > {
589- let invoice_description = lightning_invoice:: Bolt11InvoiceDescription :: try_from ( description) ?;
595+ let invoice_description =
596+ lightning_invoice:: Bolt11InvoiceDescription :: try_from ( description) ?;
590597 self . receive_via_jit_channel_inner (
591598 Some ( amount_msat) ,
592599 & invoice_description,
@@ -626,7 +633,8 @@ impl Bolt11Payment {
626633 & self , description : & Bolt11InvoiceDescription , expiry_secs : u32 ,
627634 max_proportional_lsp_fee_limit_ppm_msat : Option < u64 > ,
628635 ) -> Result < Bolt11Invoice , Error > {
629- let invoice_description = lightning_invoice:: Bolt11InvoiceDescription :: try_from ( description) ?;
636+ let invoice_description =
637+ lightning_invoice:: Bolt11InvoiceDescription :: try_from ( description) ?;
630638 self . receive_via_jit_channel_inner (
631639 None ,
632640 & invoice_description,
@@ -637,8 +645,8 @@ impl Bolt11Payment {
637645 }
638646
639647 fn receive_via_jit_channel_inner (
640- & self , amount_msat : Option < u64 > , description : & lightning_invoice:: Bolt11InvoiceDescription , expiry_secs : u32 ,
641- max_total_lsp_fee_limit_msat : Option < u64 > ,
648+ & self , amount_msat : Option < u64 > , description : & lightning_invoice:: Bolt11InvoiceDescription ,
649+ expiry_secs : u32 , max_total_lsp_fee_limit_msat : Option < u64 > ,
642650 max_proportional_lsp_fee_limit_ppm_msat : Option < u64 > ,
643651 ) -> Result < Bolt11Invoice , Error > {
644652 let liquidity_source =
0 commit comments