Skip to content

Commit 2e852de

Browse files
committed
Remove unused mut from OfferBuilder::amount_msats
Seen when removing `#[allow(unused)]` from `offers` module.
1 parent 087c0bd commit 2e852de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/offers/offer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl OfferBuilder {
137137
/// Sets the [`Offer::amount`] as an [`Amount::Bitcoin`].
138138
///
139139
/// Successive calls to this method will override the previous setting.
140-
pub fn amount_msats(mut self, amount_msats: u64) -> Self {
140+
pub fn amount_msats(self, amount_msats: u64) -> Self {
141141
self.amount(Amount::Bitcoin { amount_msats })
142142
}
143143

0 commit comments

Comments
 (0)