Skip to content

Commit

Permalink
Make IOReader and EIOReader constructors public
Browse files Browse the repository at this point in the history
  • Loading branch information
Spartan2909 committed Nov 27, 2024
1 parent 7544011 commit a31c81b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/postcard/src/de/flavors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ pub mod io {
where
T: crate::eio::Read,
{
pub(crate) fn new(reader: T, buff: &'de mut [u8]) -> Self {
pub fn new(reader: T, buff: &'de mut [u8]) -> Self {
Self {
reader,
buff: SlidingBuffer::new(buff),
Expand Down Expand Up @@ -328,7 +328,7 @@ pub mod io {
where
T: std::io::Read,
{
pub(crate) fn new(reader: T, buff: &'de mut [u8]) -> Self {
pub fn new(reader: T, buff: &'de mut [u8]) -> Self {
Self {
reader,
buff: SlidingBuffer::new(buff),
Expand Down

0 comments on commit a31c81b

Please sign in to comment.