Skip to content

Commit

Permalink
Hide ReadBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Nov 20, 2023
1 parent 61c7e8b commit 0941b61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use embedded_io_async::{BufRead, Read};

use crate::TryBufRead;

pub struct ReadBuffer<'buf> {
pub(crate) struct ReadBuffer<'buf> {
pub buffer: &'buf mut [u8],
pub loaded: usize,
}
Expand Down Expand Up @@ -46,8 +46,8 @@ pub struct BufferingReader<'resp, 'buf, B>
where
B: Read,
{
pub buffer: ReadBuffer<'buf>,
pub stream: &'resp mut B,
pub(crate) buffer: ReadBuffer<'buf>,
pub(crate) stream: &'resp mut B,
}

impl<'resp, 'buf, B> BufferingReader<'resp, 'buf, B>
Expand Down

0 comments on commit 0941b61

Please sign in to comment.