Skip to content

Commit 2c12559

Browse files
committed
f - reduce visibility
1 parent b191010 commit 2c12559

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/offers/offer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ impl OfferBuilder {
145145
/// Sets the [`Offer::amount`].
146146
///
147147
/// Successive calls to this method will override the previous setting.
148-
pub(crate) fn amount(mut self, amount: Amount) -> Self {
148+
pub(super) fn amount(mut self, amount: Amount) -> Self {
149149
self.offer.amount = Some(amount);
150150
self
151151
}
@@ -223,7 +223,7 @@ impl OfferBuilder {
223223
}
224224

225225
#[cfg(test)]
226-
pub(crate) fn build_unchecked(self) -> Offer {
226+
pub(super) fn build_unchecked(self) -> Offer {
227227
let mut bytes = Vec::new();
228228
self.offer.write(&mut bytes).unwrap();
229229

@@ -380,7 +380,7 @@ impl Offer {
380380
}
381381

382382
#[cfg(test)]
383-
pub(crate) fn as_tlv_stream(&self) -> OfferTlvStreamRef {
383+
pub(super) fn as_tlv_stream(&self) -> OfferTlvStreamRef {
384384
self.contents.as_tlv_stream()
385385
}
386386
}

0 commit comments

Comments
 (0)