From d6900723df7a9cdd75092e89b60674881700c8b2 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Mon, 22 Apr 2024 16:43:26 -0500 Subject: [PATCH] Remove unnecessary PaymentPreimage clone --- lightning/src/ln/channelmanager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 130eab493..06627ff6c 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -5548,7 +5548,7 @@ where } } let purpose = events::PaymentPurpose::from_parts( - payment_preimage.clone(), + payment_preimage, payment_data.payment_secret, payment_context.clone(), ); -- 2.39.5