summaryrefslogtreecommitdiff
path: root/test/sys/test_pthread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/sys/test_pthread.rs')
-rw-r--r--test/sys/test_pthread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sys/test_pthread.rs b/test/sys/test_pthread.rs
index fa9b510e..42a4aefa 100644
--- a/test/sys/test_pthread.rs
+++ b/test/sys/test_pthread.rs
@@ -4,7 +4,7 @@ use nix::sys::pthread::*;
#[test]
fn test_pthread_self() {
let tid = pthread_self();
- assert!(tid != ::std::ptr::null_mut());
+ assert!(!tid.is_null());
}
#[cfg(not(any(target_env = "musl", target_os = "redox")))]