fix: convert nix Fd to raw fd using into_raw()

This commit is contained in:
Andrew Phillips (aider)
2025-05-12 11:14:44 -03:00
parent d31ab6e793
commit f9dd390a12

View File

@@ -147,7 +147,7 @@ pub fn mode_diff(
compression_type: CompressionType,
fd_write: nix::unistd::Fd,
) -> std::thread::JoinHandle<()> {
let pipe_writer_raw = unsafe { std::fs::File::from_raw_fd(fd_write) };
let pipe_writer_raw = unsafe { std::fs::File::from_raw_fd(fd_write.into_raw()) };
std::thread::spawn(move || {
write_item_to_pipe(
item_path,