From: Jeffrey Czyz Date: Mon, 28 Nov 2022 17:58:39 +0000 (-0500) Subject: Remove unused mut from OfferBuilder::amount_msats X-Git-Tag: v0.0.113~8^2~8 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=3e17e7f9bbc55faf7c3293b307d237357a2eb3b1;p=rust-lightning Remove unused mut from OfferBuilder::amount_msats Seen when removing `#[allow(unused)]` from `offers` module. --- 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 }) }