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 fbbf97e commit 6988d69Copy full SHA for 6988d69
src/reader.rs
@@ -58,7 +58,7 @@ impl PipeReader {
58
fn copy_data_into_buffer(&self, data: &Data, buf: &mut ReadBuf) -> usize {
59
let len = data.len.min(buf.capacity());
60
unsafe {
61
- ptr::copy_nonoverlapping(data.ptr, buf.filled_mut().as_mut_ptr(), len);
+ ptr::copy_nonoverlapping(data.ptr, buf.initialize_unfilled().as_mut_ptr(), len);
62
}
63
len
64
0 commit comments