1
Fork 0

limit visibility of copy offload helpers to sys::unix module

This commit is contained in:
The8472 2020-10-15 01:51:47 +02:00
parent 18bfe2a66b
commit 888b1031bc
4 changed files with 7 additions and 7 deletions

View file

@ -58,6 +58,9 @@ use crate::os::unix::io::{AsRawFd, FromRawFd, RawFd};
use crate::process::{ChildStderr, ChildStdin, ChildStdout};
use crate::sys::fs::{copy_regular_files, sendfile_splice, CopyResult, SpliceMode};
#[cfg(test)]
mod tests;
pub(crate) fn copy_spec<R: Read + ?Sized, W: Write + ?Sized>(
read: &mut R,
write: &mut W,