Skip to content

Commit

Permalink
Fix unused import warnings in test_aio_drop
Browse files Browse the repository at this point in the history
  • Loading branch information
thendiscard committed Jan 10, 2019
1 parent a4d7b75 commit 0dd5b45
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions test/sys/test_aio_drop.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
extern crate nix;
extern crate tempfile;

#[cfg(any(target_os = "linux",
target_os = "ios",
target_os = "macos",
target_os = "freebsd",
target_os = "netbsd"))]
use nix::sys::aio::*;
use nix::sys::signal::*;
use std::os::unix::io::AsRawFd;
use tempfile::tempfile;

// Test dropping an AioCb that hasn't yet finished.
// This must happen in its own process, because on OSX this test seems to hose
// the AIO subsystem and causes subsequent tests to fail
Expand All @@ -23,6 +13,11 @@ use tempfile::tempfile;
target_os = "freebsd",
target_os = "netbsd")))]
fn test_drop() {
use nix::sys::aio::*;
use nix::sys::signal::*;
use std::os::unix::io::AsRawFd;
use tempfile::tempfile;

const WBUF: &[u8] = b"CDEF";

let f = tempfile().unwrap();
Expand Down

0 comments on commit 0dd5b45

Please sign in to comment.