From ee16b2e64cbe982f1ed2b66658f2eda57d9cf978 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Wed, 13 May 2026 10:48:15 +0900 Subject: [PATCH] more: replace nix by rustix --- tests/by-util/test_more.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/by-util/test_more.rs b/tests/by-util/test_more.rs index b5256af6174..3583cc98026 100644 --- a/tests/by-util/test_more.rs +++ b/tests/by-util/test_more.rs @@ -4,7 +4,7 @@ // file that was distributed with this source code. #[cfg(unix)] -use nix::unistd::{read, write}; +use rustix::io::write; // todo: incorrectly using write instead of write_all #[cfg(unix)] use std::fs::File; #[cfg(unix)] @@ -37,7 +37,7 @@ fn run_more_with_pty( child.delay(200); let mut output = vec![0u8; 1024]; - let n = read(&controller, &mut output).unwrap(); + let n = rustix::io::read(&controller, &mut output).unwrap(); let output_str = String::from_utf8_lossy(&output[..n]).to_string(); (child, controller, output_str)