From: Valentine Wallace Date: Tue, 20 Dec 2022 23:20:53 +0000 (-0500) Subject: outbound_payment: put method signature closing paren on next line X-Git-Tag: v0.0.114-beta~77^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=cc60fd601f2e7a5783ba8004439dd6853cd1bae7;p=rust-lightning outbound_payment: put method signature closing paren on next line in long method signatures --- diff --git a/lightning/src/ln/outbound_payment.rs b/lightning/src/ln/outbound_payment.rs index 6da14388a..2f6431665 100644 --- a/lightning/src/ln/outbound_payment.rs +++ b/lightning/src/ln/outbound_payment.rs @@ -447,7 +447,8 @@ impl OutboundPayments { &self, route: &Route, payment_hash: PaymentHash, payment_secret: &Option, keysend_preimage: Option, payment_id: PaymentId, recv_value_msat: Option, onion_session_privs: Vec<[u8; 32]>, keys_manager: &K, best_block_height: u32, - send_payment_along_path: F) -> Result<(), PaymentSendFailure> + send_payment_along_path: F + ) -> Result<(), PaymentSendFailure> where K::Target: KeysInterface, F: Fn(&Vec, &Option, &PaymentHash, &Option, u64, @@ -556,7 +557,8 @@ impl OutboundPayments { &self, route: &Route, payment_hash: PaymentHash, payment_secret: &Option, keysend_preimage: Option, payment_id: PaymentId, recv_value_msat: Option, onion_session_privs: Vec<[u8; 32]>, keys_manager: &K, best_block_height: u32, - send_payment_along_path: F) -> Result<(), PaymentSendFailure> + send_payment_along_path: F + ) -> Result<(), PaymentSendFailure> where K::Target: KeysInterface, F: Fn(&Vec, &Option, &PaymentHash, &Option, u64, @@ -569,8 +571,8 @@ impl OutboundPayments { pub(super) fn claim_htlc( &self, payment_id: PaymentId, payment_preimage: PaymentPreimage, session_priv: SecretKey, - path: Vec, from_onchain: bool, pending_events: &Mutex>, logger: &L) - where L::Target: Logger { + path: Vec, from_onchain: bool, pending_events: &Mutex>, logger: &L + ) where L::Target: Logger { let mut session_priv_bytes = [0; 32]; session_priv_bytes.copy_from_slice(&session_priv[..]); let mut outbounds = self.pending_outbound_payments.lock().unwrap(); @@ -679,8 +681,8 @@ impl OutboundPayments { &self, source: &HTLCSource, payment_hash: &PaymentHash, onion_error: &HTLCFailReason, path: &Vec, session_priv: &SecretKey, payment_id: &PaymentId, payment_params: &Option, probing_cookie_secret: [u8; 32], - secp_ctx: &Secp256k1, pending_events: &Mutex>, logger: &L) - where L::Target: Logger { + secp_ctx: &Secp256k1, pending_events: &Mutex>, logger: &L + ) where L::Target: Logger { let mut session_priv_bytes = [0; 32]; session_priv_bytes.copy_from_slice(&session_priv[..]); let mut outbounds = self.pending_outbound_payments.lock().unwrap();