Skip to content

Commit 18b2bc1

Browse files
committed
Get rid of the bulk imports
1 parent d5c4d0f commit 18b2bc1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/sys/test_ptrace.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
use nix::Error;
2-
use nix::errno::*;
3-
use nix::unistd::*;
2+
use nix::errno::Errno;
3+
use nix::unistd::getpid;
44
use nix::sys::ptrace;
55

66
use std::{mem, ptr};
77

88
#[test]
99
fn test_ptrace() {
10-
use nix::sys::ptrace::ptrace::*;
10+
use nix::sys::ptrace::ptrace::PTRACE_ATTACH;
1111
// Just make sure ptrace can be called at all, for now.
1212
// FIXME: qemu-user doesn't implement ptrace on all arches, so permit ENOSYS
1313
let err = ptrace::ptrace(PTRACE_ATTACH, getpid(), ptr::null_mut(), ptr::null_mut()).unwrap_err();
@@ -17,7 +17,7 @@ fn test_ptrace() {
1717
// Just make sure ptrace_setoptions can be called at all, for now.
1818
#[test]
1919
fn test_ptrace_setoptions() {
20-
use nix::sys::ptrace::ptrace::*; // for PTRACE_O_TRACESYSGOOD
20+
use nix::sys::ptrace::ptrace::PTRACE_O_TRACESYSGOOD;
2121
let err = ptrace::setoptions(getpid(), PTRACE_O_TRACESYSGOOD).unwrap_err();
2222
assert!(err != Error::UnsupportedOperation);
2323
}

0 commit comments

Comments
 (0)