From dc1a34b864abc12bfef3de06b267d299298e01cb Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 9 Jul 2022 21:48:24 -0600 Subject: Clippy cleanup in the tests. * Remove a redundant closure. * Comparison with null * Manual implementation of find * Suppress a false positive --- test/sys/test_pthread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/sys/test_pthread.rs') 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")))] -- cgit v1.2.3