Remove unused mut from OfferBuilder::amount_msats
[rust-lightning] / 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 })
        }