Skip to content

Commit

Permalink
Merge pull request #119 from rimecraft-rs/pub-slice-and-reader
Browse files Browse the repository at this point in the history
Make `input::Reader` and `input::Slice` public internally
  • Loading branch information
owengage authored Aug 26, 2024
2 parents 0ea1a33 + 9e5f6d3 commit e2a5d8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fastnbt/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ pub trait Input<'de>: private::Sealed {
}
}

pub(crate) struct Slice<'de> {
pub data: &'de [u8],
pub struct Slice<'de> {
pub(crate) data: &'de [u8],
}

impl<'de> private::Sealed for Slice<'de> {}
Expand Down Expand Up @@ -226,8 +226,8 @@ impl<'de> Input<'de> for Slice<'de> {
}
}

pub(crate) struct Reader<R: Read> {
pub reader: R,
pub struct Reader<R: Read> {
pub(crate) reader: R,
}

impl<R: Read> private::Sealed for Reader<R> {}
Expand Down

0 comments on commit e2a5d8a

Please sign in to comment.