mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
uucore: fix cfg attributes causing dead code warnings
This commit is contained in:
committed by
Daniel Hofstetter
parent
485b1563b7
commit
aa10b3ad5e
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user