]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix indentation in payment_secret function
authorValentine Wallace <vwallace@protonmail.com>
Tue, 13 Apr 2021 14:34:33 +0000 (10:34 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Fri, 23 Apr 2021 21:11:40 +0000 (17:11 -0400)
lightning-invoice/src/lib.rs

index 2ce022248d0ad2479247bb4b9e2d29ff7d0451ca..315cf641c8ec80a953ae25fc654be5eba9951888 100644 (file)
@@ -992,10 +992,10 @@ impl Invoice {
                self.signed_invoice.payee_pub_key().map(|x| &x.0)
        }
 
-    /// Get the payment secret if one was included in the invoice
-    pub fn payment_secret(&self) -> Option<&PaymentSecret> {
-        self.signed_invoice.payment_secret()
-    }
+       /// Get the payment secret if one was included in the invoice
+       pub fn payment_secret(&self) -> Option<&PaymentSecret> {
+               self.signed_invoice.payment_secret()
+       }
 
        /// Recover the payee's public key (only to be used if none was included in the invoice)
        pub fn recover_payee_pub_key(&self) -> PublicKey {