summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2019-06-03 07:22:27 -0600
committerAlan Somers <asomers@gmail.com>2019-06-06 08:54:51 -0600
commitc5181c65b54857fecd905b6b1d0d34225d53fef6 (patch)
tree73daae2aaf3fd4b194a934d741e3a047fcceea02 /test
parentd26749e33a06cf46ca5c2e2e716faf2a71ca747f (diff)
downloadnix-c5181c65b54857fecd905b6b1d0d34225d53fef6.zip
Fix an "unused use statement" warning on non-musl platforms
This was an oversight from 974320d09fbd1fae79da537383c2144ed9aa4967
Diffstat (limited to 'test')
-rw-r--r--test/sys/test_pthread.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/sys/test_pthread.rs b/test/sys/test_pthread.rs
index 7e6baea0..89280100 100644
--- a/test/sys/test_pthread.rs
+++ b/test/sys/test_pthread.rs
@@ -1,11 +1,10 @@
use nix::sys::pthread::*;
-use std::ptr;
#[cfg(target_env = "musl")]
#[test]
fn test_pthread_self() {
let tid = pthread_self();
- assert!(tid != ptr::null_mut());
+ assert!(tid != ::std::ptr::null_mut());
}
#[cfg(not(target_env = "musl"))]