From: Jeffrey Czyz Date: Mon, 22 Apr 2024 21:43:26 +0000 (-0500) Subject: Remove unnecessary PaymentPreimage clone X-Git-Tag: v0.0.123-rc1~1^2~9^2~3 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=d6900723df7a9cdd75092e89b60674881700c8b2;p=rust-lightning Remove unnecessary PaymentPreimage clone --- 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(), );