diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-07-11 02:19:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 02:19:59 +0000 |
commit | b1b43725dff4a9cc71836f6b45c8b5f66c15abb5 (patch) | |
tree | 6ff46fce9125ab3b1d967f18665b511f6eb3aea8 /test/sys/test_pthread.rs | |
parent | d09c2972b76fd3fa4abcb93b2820bb11c022cd34 (diff) | |
parent | dc1a34b864abc12bfef3de06b267d299298e01cb (diff) | |
download | nix-b1b43725dff4a9cc71836f6b45c8b5f66c15abb5.zip |
Merge #1757
1757: Clippy cleanup in the tests. r=rtzoeller a=asomers
* Remove a redundant closure.
Co-authored-by: Alan Somers <asomers@gmail.com>
Diffstat (limited to 'test/sys/test_pthread.rs')
-rw-r--r-- | test/sys/test_pthread.rs | 2 |
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")))] |