Skip to content

Commit faeb7e1

Browse files
committed
f - reduce visibility
1 parent 2c6e638 commit faeb7e1

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

@@ -390,7 +390,7 @@ impl Offer {
390390
}
391391

392392
#[cfg(test)]
393-
pub(crate) fn as_tlv_stream(&self) -> OfferTlvStreamRef {
393+
pub(super) fn as_tlv_stream(&self) -> OfferTlvStreamRef {
394394
self.contents.as_tlv_stream()
395395
}
396396
}

0 commit comments

Comments
 (0)