diff options
| author | The8472 <git@infinite-source.de> | 2020-10-15 03:07:57 +0200 |
|---|---|---|
| committer | The8472 <git@infinite-source.de> | 2020-11-13 22:38:27 +0100 |
| commit | 3dfc377aa12293ace29f9a055f0aeb634d107ed9 (patch) | |
| tree | 166de453a36d983b1c0408e40470481b69eb8f66 /library/std/src/sys/unix/kernel_copy | |
| parent | 888b1031bc267132c66dbba49b43a55a83452ca4 (diff) | |
| download | rust-3dfc377aa12293ace29f9a055f0aeb634d107ed9.tar.gz rust-3dfc377aa12293ace29f9a055f0aeb634d107ed9.zip | |
move sendfile/splice/copy_file_range into kernel_copy module
Diffstat (limited to 'library/std/src/sys/unix/kernel_copy')
| -rw-r--r-- | library/std/src/sys/unix/kernel_copy/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/kernel_copy/tests.rs b/library/std/src/sys/unix/kernel_copy/tests.rs index fcff5fa934d..88921692453 100644 --- a/library/std/src/sys/unix/kernel_copy/tests.rs +++ b/library/std/src/sys/unix/kernel_copy/tests.rs @@ -159,8 +159,8 @@ fn bench_socket_pipe_socket_copy(b: &mut test::Bencher) { let local_source = local_end.clone(); crate::thread::spawn(move || { loop { - crate::sys::fs::sendfile_splice( - crate::sys::fs::SpliceMode::Splice, + super::sendfile_splice( + super::SpliceMode::Splice, local_source.as_raw_fd(), write_end.as_raw_fd(), u64::MAX, |
