diff options
author | Sanchayan Maity <maitysanchayan@gmail.com> | 2017-10-05 10:20:09 +0530 |
---|---|---|
committer | Sanchayan Maity <maitysanchayan@gmail.com> | 2017-10-05 10:20:09 +0530 |
commit | b8129e0f08f98fc8675cd4bcab9f70256d4fb37a (patch) | |
tree | 0a0f506512193914c65f7ec4f7cf4a46c535b265 | |
parent | 18eeb27e09fa9015a6484f34afa226eca1d25392 (diff) | |
download | nix-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.rs | 2 |
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; }; |