File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ pub struct Offer {
242
242
243
243
/// The contents of an [`Offer`], which may be shared with an `InvoiceRequest` or an `Invoice`.
244
244
#[ derive( Clone , Debug ) ]
245
- pub ( crate ) struct OfferContents {
245
+ pub ( super ) struct OfferContents {
246
246
chains : Option < Vec < ChainHash > > ,
247
247
metadata : Option < Vec < u8 > > ,
248
248
amount : Option < Amount > ,
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ use crate::util::ser::SeekReadable;
20
20
use crate :: prelude:: * ;
21
21
22
22
/// Indicates a message can be encoded using bech32.
23
- pub ( crate ) trait Bech32Encode : AsRef < [ u8 ] > + TryFrom < Vec < u8 > , Error =ParseError > {
23
+ pub ( super ) trait Bech32Encode : AsRef < [ u8 ] > + TryFrom < Vec < u8 > , Error =ParseError > {
24
24
/// Human readable part of the message's bech32 encoding.
25
25
const BECH32_HRP : & ' static str ;
26
26
@@ -78,7 +78,7 @@ impl<'a> AsRef<str> for Bech32String<'a> {
78
78
79
79
/// A wrapper for reading a message as a TLV stream `T` from a byte sequence, while still
80
80
/// maintaining ownership of the bytes for later use.
81
- pub ( crate ) struct ParsedMessage < T : SeekReadable > {
81
+ pub ( super ) struct ParsedMessage < T : SeekReadable > {
82
82
pub bytes : Vec < u8 > ,
83
83
pub tlv_stream : T ,
84
84
}
Original file line number Diff line number Diff line change @@ -504,15 +504,15 @@ macro_rules! tlv_stream {
504
504
$( ( $type: expr, $field: ident : $fieldty: tt) ) ,* $( , ) *
505
505
} ) => {
506
506
#[ derive( Debug ) ]
507
- pub ( crate ) struct $name {
507
+ pub ( super ) struct $name {
508
508
$(
509
509
$field: Option <tlv_record_type!( $fieldty) >,
510
510
) *
511
511
}
512
512
513
- pub ( crate ) struct $nameref<' a> {
513
+ pub ( super ) struct $nameref<' a> {
514
514
$(
515
- pub ( crate ) $field: Option <tlv_record_ref_type!( $fieldty) >,
515
+ pub ( super ) $field: Option <tlv_record_ref_type!( $fieldty) >,
516
516
) *
517
517
}
518
518
You can’t perform that action at this time.
0 commit comments