From b8129e0f08f98fc8675cd4bcab9f70256d4fb37a Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 5 Oct 2017 10:20:09 +0530 Subject: 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 --- test/sys/test_aio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }; -- cgit v1.2.3