Skip to content

Commit aa10b3a

Browse files
xtqqczzecakebaker
authored andcommitted
uucore: fix cfg attributes causing dead code warnings
1 parent 485b156 commit aa10b3a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/uucore/src/lib/features/buf_copy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mod tests {
2525
use std::fs::File;
2626
use tempfile::tempdir;
2727

28-
#[cfg(unix)]
28+
#[cfg(target_os = "linux")]
2929
use {
3030
crate::pipes,
3131
std::fs::OpenOptions,
@@ -37,7 +37,7 @@ mod tests {
3737

3838
use std::io::{Read, Write};
3939

40-
#[cfg(unix)]
40+
#[cfg(target_os = "linux")]
4141
fn new_temp_file() -> File {
4242
let temp_dir = tempdir().unwrap();
4343
OpenOptions::new()

0 commit comments

Comments
 (0)