Skip to content

Commit e81aca6

Browse files
committed
Make LengthRead[able] public
A followup commit will require that LengthReadable be accessible from outside the lightning crate, as it will be the default trait referenced for TLV stream decoding.
1 parent 31b32c5 commit e81aca6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/util/ser.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ where
344344
fn read<R: Read>(reader: &mut R, params: P) -> Result<Self, DecodeError>;
345345
}
346346

347-
/// A [`std::io::Read`] that also provides the total bytes available to be read.
348-
pub(crate) trait LengthRead: Read {
347+
/// A [`io::Read`] that also provides the total bytes available to be read.
348+
pub trait LengthRead: Read {
349349
/// The total number of bytes available to be read.
350350
fn total_bytes(&self) -> u64;
351351
}
@@ -363,7 +363,7 @@ where
363363

364364
/// A trait that various higher-level LDK types implement allowing them to be read in
365365
/// from a [`Read`], requiring the implementer to provide the total length of the read.
366-
pub(crate) trait LengthReadable
366+
pub trait LengthReadable
367367
where
368368
Self: Sized,
369369
{

0 commit comments

Comments
 (0)