From 18b2bc1f2087bb07a45916c603b262bbbb7fac37 Mon Sep 17 00:00:00 2001 From: Marcin Mielniczuk Date: Fri, 21 Jul 2017 10:03:41 +0200 Subject: [PATCH] Get rid of the bulk imports --- test/sys/test_ptrace.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/sys/test_ptrace.rs b/test/sys/test_ptrace.rs index 01f676c996..0614c13fd2 100644 --- a/test/sys/test_ptrace.rs +++ b/test/sys/test_ptrace.rs @@ -1,13 +1,13 @@ use nix::Error; -use nix::errno::*; -use nix::unistd::*; +use nix::errno::Errno; +use nix::unistd::getpid; use nix::sys::ptrace; use std::{mem, ptr}; #[test] fn test_ptrace() { - use nix::sys::ptrace::ptrace::*; + use nix::sys::ptrace::ptrace::PTRACE_ATTACH; // Just make sure ptrace can be called at all, for now. // FIXME: qemu-user doesn't implement ptrace on all arches, so permit ENOSYS let err = ptrace::ptrace(PTRACE_ATTACH, getpid(), ptr::null_mut(), ptr::null_mut()).unwrap_err(); @@ -17,7 +17,7 @@ fn test_ptrace() { // Just make sure ptrace_setoptions can be called at all, for now. #[test] fn test_ptrace_setoptions() { - use nix::sys::ptrace::ptrace::*; // for PTRACE_O_TRACESYSGOOD + use nix::sys::ptrace::ptrace::PTRACE_O_TRACESYSGOOD; let err = ptrace::setoptions(getpid(), PTRACE_O_TRACESYSGOOD).unwrap_err(); assert!(err != Error::UnsupportedOperation); }