summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2023-05-21 08:52:42 -0600
committerAlan Somers <asomers@gmail.com>2023-05-21 08:52:42 -0600
commite42c3589a3c17e69043bc76c9a087acf6e5cb83e (patch)
tree389dc5b02b55b90b3af387c465f33ff1a16bf397 /test
parentae6699940e8fc75008f94312f189892efdcfb2f0 (diff)
downloadnix-e42c3589a3c17e69043bc76c9a087acf6e5cb83e.zip
Clippy cleanup:
fix the new clippy::non_minimal_cfg lint
Diffstat (limited to 'test')
-rw-r--r--test/test_fcntl.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_fcntl.rs b/test/test_fcntl.rs
index 8f50f16b..de502d1a 100644
--- a/test/test_fcntl.rs
+++ b/test/test_fcntl.rs
@@ -238,7 +238,7 @@ mod linux_android {
use nix::unistd::{close, pipe, read, write};
use tempfile::tempfile;
- #[cfg(any(target_os = "linux"))]
+ #[cfg(target_os = "linux")]
use tempfile::NamedTempFile;
use crate::*;
@@ -355,7 +355,7 @@ mod linux_android {
close(wr).unwrap();
}
- #[cfg(any(target_os = "linux"))]
+ #[cfg(target_os = "linux")]
#[test]
fn test_fallocate() {
let tmp = NamedTempFile::new().unwrap();