]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove unused mut from OfferBuilder::amount_msats
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 28 Nov 2022 17:58:39 +0000 (12:58 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 2 Dec 2022 23:28:02 +0000 (15:28 -0800)
Seen when removing `#[allow(unused)]` from `offers` module.

lightning/src/offers/offer.rs

index 5995c513dab9c00301bfb5c442428719bf3da230..c31ca9bb9c5ac5ee4a7d8debff728309957e9b4a 100644 (file)
@@ -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 })
        }