From aa10b3ad5e4785bc380f8c51dfa2e2cd3d7ba06c Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Thu, 7 May 2026 20:18:36 +0100 Subject: [PATCH] uucore: fix cfg attributes causing dead code warnings --- src/uucore/src/lib/features/buf_copy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uucore/src/lib/features/buf_copy.rs b/src/uucore/src/lib/features/buf_copy.rs index 179ecc8d9..976a913a7 100644 --- a/src/uucore/src/lib/features/buf_copy.rs +++ b/src/uucore/src/lib/features/buf_copy.rs @@ -25,7 +25,7 @@ mod tests { use std::fs::File; use tempfile::tempdir; - #[cfg(unix)] + #[cfg(target_os = "linux")] use { crate::pipes, std::fs::OpenOptions, @@ -37,7 +37,7 @@ mod tests { use std::io::{Read, Write}; - #[cfg(unix)] + #[cfg(target_os = "linux")] fn new_temp_file() -> File { let temp_dir = tempdir().unwrap(); OpenOptions::new()