projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b8b17d
)
Remove unused mut from OfferBuilder::amount_msats
author
Jeffrey Czyz
<jkczyz@gmail.com>
Mon, 28 Nov 2022 17:58:39 +0000
(12:58 -0500)
committer
Jeffrey 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
patch
|
blob
|
history
diff --git
a/lightning/src/offers/offer.rs
b/lightning/src/offers/offer.rs
index 5995c513dab9c00301bfb5c442428719bf3da230..c31ca9bb9c5ac5ee4a7d8debff728309957e9b4a 100644
(file)
--- 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 })
}