limit visibility of copy offload helpers to sys::unix module
This commit is contained in:
parent
18bfe2a66b
commit
888b1031bc
4 changed files with 7 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue