2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2020-05-10 22:53:31 +00:00
|
|
|
--> $DIR/for_loop_fixable.rs:43:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in vec.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^^ help: to write this more concisely, try: `&vec`
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::explicit-iter-loop` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2020-05-10 22:53:31 +00:00
|
|
|
--> $DIR/for_loop_fixable.rs:45:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in vec.iter_mut() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&mut vec`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2020-01-06 06:36:33 +00:00
|
|
|
error: it is more concise to loop over containers instead of using explicit iteration methods
|
2020-05-10 22:53:31 +00:00
|
|
|
--> $DIR/for_loop_fixable.rs:48:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in out_vec.into_iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `out_vec`
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::explicit-into-iter-loop` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2020-05-10 22:53:31 +00:00
|
|
|
--> $DIR/for_loop_fixable.rs:53:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in [1, 2, 3].iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[1, 2, 3]`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2020-05-10 22:53:31 +00:00
|
|
|
--> $DIR/for_loop_fixable.rs:57:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in [0; 32].iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[0; 32]`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2020-05-10 22:53:31 +00:00
|
|
|
--> $DIR/for_loop_fixable.rs:62:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in ll.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&ll`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2020-05-10 22:53:31 +00:00
|
|
|
--> $DIR/for_loop_fixable.rs:65:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in vd.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&vd`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2020-05-10 22:53:31 +00:00
|
|
|
--> $DIR/for_loop_fixable.rs:68:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in bh.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&bh`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2020-05-10 22:53:31 +00:00
|
|
|
--> $DIR/for_loop_fixable.rs:71:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in hm.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&hm`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2020-05-10 22:53:31 +00:00
|
|
|
--> $DIR/for_loop_fixable.rs:74:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in bt.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&bt`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2020-05-10 22:53:31 +00:00
|
|
|
--> $DIR/for_loop_fixable.rs:77:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in hs.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&hs`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-09-03 07:19:59 +00:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2020-05-10 22:53:31 +00:00
|
|
|
--> $DIR/for_loop_fixable.rs:80:15
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | for _v in bs.iter() {}
|
2019-05-24 06:19:51 +00:00
|
|
|
| ^^^^^^^^^ help: to write this more concisely, try: `&bs`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2020-01-06 06:36:33 +00:00
|
|
|
error: it is more concise to loop over containers instead of using explicit iteration methods
|
2020-05-10 22:53:31 +00:00
|
|
|
--> $DIR/for_loop_fixable.rs:255:18
|
2020-01-01 05:09:09 +00:00
|
|
|
|
|
|
|
|
LL | for i in iterator.into_iter() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `iterator`
|
|
|
|
|
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2020-05-10 22:53:31 +00:00
|
|
|
--> $DIR/for_loop_fixable.rs:275:18
|
2020-01-01 05:09:09 +00:00
|
|
|
|
|
|
|
|
LL | for _ in t.into_iter() {}
|
|
|
|
| ^^^^^^^^^^^^^ help: to write this more concisely, try: `&t`
|
|
|
|
|
2020-01-06 06:36:33 +00:00
|
|
|
error: it is more concise to loop over containers instead of using explicit iteration methods
|
2020-05-10 22:53:31 +00:00
|
|
|
--> $DIR/for_loop_fixable.rs:277:18
|
2020-01-01 05:09:09 +00:00
|
|
|
|
|
|
|
|
LL | for _ in r.into_iter() {}
|
|
|
|
| ^^^^^^^^^^^^^ help: to write this more concisely, try: `r`
|
|
|
|
|
2020-05-10 22:53:31 +00:00
|
|
|
error: aborting due to 15 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|