We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b855475 commit 7161f56Copy full SHA for 7161f56
src/rt/io.rs
@@ -133,9 +133,9 @@ pub struct ReadBufCursor<'a> {
133
}
134
135
impl<'data> ReadBuf<'data> {
136
+ /// Create a new `ReadBuf` with a slice of initialized bytes.
137
#[inline]
- #[cfg(test)]
138
- pub(crate) fn new(raw: &'data mut [u8]) -> Self {
+ pub fn new(raw: &'data mut [u8]) -> Self {
139
let len = raw.len();
140
Self {
141
// SAFETY: We never de-init the bytes ourselves.
0 commit comments