summaryrefslogtreecommitdiff
path: root/test/sys/test_aio.rs
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2018-08-06 00:09:41 +0200
committerPascal Bach <pascal.bach@nextrem.ch>2018-09-05 21:59:45 +0200
commit57603c62922980d1d8e624700b8aa24d59bebc76 (patch)
tree51943dc1d48b9a4a7d923533848cd042a8134c8d /test/sys/test_aio.rs
parentda089f874a3234e8a8837f60f4376dc30ca1ef5e (diff)
downloadnix-57603c62922980d1d8e624700b8aa24d59bebc76.zip
Replace allow unused directive with _ prefix
Diffstat (limited to 'test/sys/test_aio.rs')
-rw-r--r--test/sys/test_aio.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/sys/test_aio.rs b/test/sys/test_aio.rs
index 48399fbd..d4b09b0b 100644
--- a/test/sys/test_aio.rs
+++ b/test/sys/test_aio.rs
@@ -441,8 +441,7 @@ extern fn sigfunc(_: c_int) {
#[test]
#[cfg_attr(any(all(target_env = "musl", target_arch = "x86_64"), target_arch = "mips", target_arch = "mips64"), ignore)]
fn test_write_sigev_signal() {
- #[allow(unused_variables)]
- let m = ::SIGNAL_MTX.lock().expect("Mutex got poisoned by another test");
+ let _m = ::SIGNAL_MTX.lock().expect("Mutex got poisoned by another test");
let sa = SigAction::new(SigHandler::Handler(sigfunc),
SaFlags::SA_RESETHAND,
SigSet::empty());
@@ -580,8 +579,7 @@ fn test_liocb_listio_nowait() {
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
#[cfg_attr(any(target_arch = "mips", target_arch = "mips64", target_env = "musl"), ignore)]
fn test_liocb_listio_signal() {
- #[allow(unused_variables)]
- let m = ::SIGNAL_MTX.lock().expect("Mutex got poisoned by another test");
+ let _m = ::SIGNAL_MTX.lock().expect("Mutex got poisoned by another test");
const INITIAL: &[u8] = b"abcdef123456";
const WBUF: &[u8] = b"CDEF";
let mut rbuf = vec![0; 4];