]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove unnecessary PaymentPreimage clone
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 22 Apr 2024 21:43:26 +0000 (16:43 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 22 Apr 2024 21:43:26 +0000 (16:43 -0500)
lightning/src/ln/channelmanager.rs

index 130eab49384ce884c99cc637422c61729dd1617f..06627ff6c3bbc9f92e97eb9893ed8b8fbcabd8b4 100644 (file)
@@ -5548,7 +5548,7 @@ where
                                                                                                        }
                                                                                                }
                                                                                                let purpose = events::PaymentPurpose::from_parts(
-                                                                                                       payment_preimage.clone(),
+                                                                                                       payment_preimage,
                                                                                                        payment_data.payment_secret,
                                                                                                        payment_context.clone(),
                                                                                                );