summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-12-11 16:55:15 -0700
committerAlan Somers <asomers@gmail.com>2021-12-11 16:55:15 -0700
commite7e8abc506218d7772b610e9ba8ae29eed35314e (patch)
tree4fde4b5ded211e8bce919f0d7550f5b7aa897956 /test
parentd9b69f9c6d8d2a47980d2dd9a9654e0b4f06b799 (diff)
downloadnix-e7e8abc506218d7772b610e9ba8ae29eed35314e.zip
clippy cleanup with the latest nightly
Diffstat (limited to 'test')
-rw-r--r--test/test_unistd.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_unistd.rs b/test/test_unistd.rs
index 3a1f9f10..61062ad2 100644
--- a/test/test_unistd.rs
+++ b/test/test_unistd.rs
@@ -154,7 +154,7 @@ fn test_mkfifoat_directory_none() {
let _m = crate::CWD_LOCK.read();
// mkfifoat should fail if a directory is given
- assert!(!mkfifoat(None, &env::temp_dir(), Mode::S_IRUSR).is_ok());
+ assert!(mkfifoat(None, &env::temp_dir(), Mode::S_IRUSR).is_err());
}
#[test]
@@ -168,7 +168,7 @@ fn test_mkfifoat_directory() {
let mkfifoat_dir = "mkfifoat_dir";
stat::mkdirat(dirfd, mkfifoat_dir, Mode::S_IRUSR).unwrap();
- assert!(!mkfifoat(Some(dirfd), mkfifoat_dir, Mode::S_IRUSR).is_ok());
+ assert!(mkfifoat(Some(dirfd), mkfifoat_dir, Mode::S_IRUSR).is_err());
}
#[test]