Update dependencies

This commit is contained in:
David Peter committed 2024-11-10 22:51:56 +01:00
1 parent 83f04cdd31
commit f0f2dccea6
5 files changed
+268 -328

No files matched your search

+3 -3
View File
@@ -11,7 +11,7 @@ use nix::fcntl::{splice, SpliceFFlags};
#[cfg(target_os = "linux")]
use std::fs::File;
#[cfg(target_os = "linux")]
use std::os::unix::io::AsRawFd;
use std::os::fd::AsFd;
#[cfg(target_os = "windows")]
use windows_sys::Win32::System::Threading::CREATE_SUSPENDED;
@@ -53,9 +53,9 @@ fn discard(output: ChildStdout) {
{
if let Ok(file) = File::create("/dev/null") {
while let Ok(bytes) = splice(
output.as_raw_fd(),
output.as_fd(),
None,
file.as_raw_fd(),
file.as_fd(),
None,
CHUNK_SIZE,
SpliceFFlags::empty(),