Skip to content

Commit

Permalink
fix: address warnings about useless mutable modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
pviotti committed May 17, 2020
1 parent 5d895b6 commit b4fd0ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,8 @@ fn disk_read_sequential_io_uring() {
libc::posix_fadvise(file.as_raw_fd(), 0, 0, libc::POSIX_FADV_SEQUENTIAL);
}

let mut ring = rio::new().expect("create uring");
let mut buffers = vec![vec![0; BUF_SIZE]; reads_per_iteration as usize];
let ring = rio::new().expect("create uring");
let buffers = vec![vec![0; BUF_SIZE]; reads_per_iteration as usize];
Test { buffers, file, ring, size: n_gib_bytes!(1) as usize, offset: 0 }
},
|test| {
Expand Down

0 comments on commit b4fd0ba

Please sign in to comment.