Remove unused mut from OfferBuilder::amount_msats

Seen when removing `#[allow(unused)]` from `offers` module.
This commit is contained in:
Jeffrey Czyz 2022-11-28 12:58:39 -05:00
parent 4b8b17d72f
commit 3e17e7f9bb
No known key found for this signature in database
GPG key ID: 912EF12EA67705F5

View 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 })
}