Skip to content

Commit 0dd5b45

Browse files
committed
Fix unused import warnings in test_aio_drop
1 parent a4d7b75 commit 0dd5b45

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

test/sys/test_aio_drop.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
extern crate nix;
22
extern crate tempfile;
33

4-
#[cfg(any(target_os = "linux",
5-
target_os = "ios",
6-
target_os = "macos",
7-
target_os = "freebsd",
8-
target_os = "netbsd"))]
9-
use nix::sys::aio::*;
10-
use nix::sys::signal::*;
11-
use std::os::unix::io::AsRawFd;
12-
use tempfile::tempfile;
13-
144
// Test dropping an AioCb that hasn't yet finished.
155
// This must happen in its own process, because on OSX this test seems to hose
166
// the AIO subsystem and causes subsequent tests to fail
@@ -23,6 +13,11 @@ use tempfile::tempfile;
2313
target_os = "freebsd",
2414
target_os = "netbsd")))]
2515
fn test_drop() {
16+
use nix::sys::aio::*;
17+
use nix::sys::signal::*;
18+
use std::os::unix::io::AsRawFd;
19+
use tempfile::tempfile;
20+
2621
const WBUF: &[u8] = b"CDEF";
2722

2823
let f = tempfile().unwrap();

0 commit comments

Comments
 (0)