Skip to content

Commit

Permalink
feat(rt): Make ReadBuf::new public
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler authored and seanmonstar committed Nov 16, 2023
1 parent b855475 commit 7161f56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rt/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ pub struct ReadBufCursor<'a> {
}

impl<'data> ReadBuf<'data> {
/// Create a new `ReadBuf` with a slice of initialized bytes.
#[inline]
#[cfg(test)]
pub(crate) fn new(raw: &'data mut [u8]) -> Self {
pub fn new(raw: &'data mut [u8]) -> Self {
let len = raw.len();
Self {
// SAFETY: We never de-init the bytes ourselves.
Expand Down

0 comments on commit 7161f56

Please sign in to comment.