Skip to content

Commit b8129e0

Browse files
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
1 parent 18eeb27 commit b8129e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sys/test_aio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::{thread, time};
1313
use tempfile::tempfile;
1414

1515
// Helper that polls an AioCb for completion or error
16-
fn poll_aio(mut aiocb: &mut AioCb) -> Result<()> {
16+
fn poll_aio(aiocb: &mut AioCb) -> Result<()> {
1717
loop {
1818
let err = aiocb.error();
1919
if err != Err(Error::from(Errno::EINPROGRESS)) { return err; };

0 commit comments

Comments
 (0)