summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanchayan Maity <maitysanchayan@gmail.com>2017-10-05 10:20:09 +0530
committerSanchayan Maity <maitysanchayan@gmail.com>2017-10-05 10:20:09 +0530
commitb8129e0f08f98fc8675cd4bcab9f70256d4fb37a (patch)
tree0a0f506512193914c65f7ec4f7cf4a46c535b265
parent18eeb27e09fa9015a6484f34afa226eca1d25392 (diff)
downloadnix-b8129e0f08f98fc8675cd4bcab9f70256d4fb37a.zip
Fix variable does not need to be mutable warning for aio test
This fixes the following warning during run of cargo test warning: variable does not need to be mutable --> test/sys/test_aio.rs:16:13 | 16 | fn poll_aio(mut aiocb: &mut AioCb) -> Result<()> { | ^^^^^^^^^ | = note: #[warn(unused_mut)] on by default
-rw-r--r--test/sys/test_aio.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sys/test_aio.rs b/test/sys/test_aio.rs
index 67fd0850..b74e3f63 100644
--- a/test/sys/test_aio.rs
+++ b/test/sys/test_aio.rs
@@ -13,7 +13,7 @@ use std::{thread, time};
use tempfile::tempfile;
// Helper that polls an AioCb for completion or error
-fn poll_aio(mut aiocb: &mut AioCb) -> Result<()> {
+fn poll_aio(aiocb: &mut AioCb) -> Result<()> {
loop {
let err = aiocb.error();
if err != Err(Error::from(Errno::EINPROGRESS)) { return err; };