From 3e17e7f9bbc55faf7c3293b307d237357a2eb3b1 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Mon, 28 Nov 2022 12:58:39 -0500 Subject: [PATCH] Remove unused mut from OfferBuilder::amount_msats Seen when removing `#[allow(unused)]` from `offers` module. --- lightning/src/offers/offer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/offers/offer.rs b/lightning/src/offers/offer.rs index 5995c513..c31ca9bb 100644 --- a/lightning/src/offers/offer.rs +++ b/lightning/src/offers/offer.rs @@ -137,7 +137,7 @@ impl OfferBuilder { /// Sets the [`Offer::amount`] as an [`Amount::Bitcoin`]. /// /// Successive calls to this method will override the previous setting. - pub fn amount_msats(mut self, amount_msats: u64) -> Self { + pub fn amount_msats(self, amount_msats: u64) -> Self { self.amount(Amount::Bitcoin { amount_msats }) } -- 2.30.2