Ignore clippy::needless_range_loop lint in test

```
warning: the loop variable `i` is used to index `v1`
  --> tests/unblock.rs:52:18
   |
52 |         for i in 0..v1.len() {
   |                  ^^^^^^^^^^^
   |
   = note: `#[warn(clippy::needless_range_loop)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
help: consider using an iterator
   |
52 |         for (i, <item>) in v1.iter_mut().enumerate() {
   |             ~~~~~~~~~~~    ~~~~~~~~~~~~~~~~~~~~~~~~~

warning: the loop variable `i` is used to index `v1`
  --> tests/unblock.rs:71:18
   |
71 |         for i in 0..v1.len() {
   |                  ^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
help: consider using an iterator
   |
71 |         for (i, <item>) in v1.iter_mut().enumerate() {
   |             ~~~~~~~~~~~    ~~~~~~~~~~~~~~~~~~~~~~~~~

warning: the loop variable `i` is used to index `v`
  --> tests/unblock.rs:89:18
   |
89 |         for i in 0..len {
   |                  ^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
help: consider using an iterator
   |
89 |         for (i, <item>) in v.iter_mut().enumerate().take(len) {
   |             ~~~~~~~~~~~    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
This commit is contained in:
Taiki Endo 2022-07-17 21:39:09 +09:00
parent c1b8fae3cc
commit 9f8fec9e6e
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#![allow(clippy::needless_range_loop)]
use std::io::{Cursor, SeekFrom};
use std::sync::mpsc;
use std::thread;