@@ -77,64 +77,58 @@ LL | for _v in out_vec.into_iter() {}
7777 = note: `-D clippy::explicit-into-iter-loop` implied by `-D warnings`
7878
7979error: it is more concise to loop over references to containers instead of using explicit iteration methods
80- --> $DIR/for_loop_fixable.rs:106:15
81- |
82- LL | for _v in array.into_iter() {}
83- | ^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&array`
84-
85- error: it is more concise to loop over references to containers instead of using explicit iteration methods
86- --> $DIR/for_loop_fixable.rs:111:15
80+ --> $DIR/for_loop_fixable.rs:108:15
8781 |
8882LL | for _v in [1, 2, 3].iter() {}
8983 | ^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[1, 2, 3]`
9084
9185error: it is more concise to loop over references to containers instead of using explicit iteration methods
92- --> $DIR/for_loop_fixable.rs:115 :15
86+ --> $DIR/for_loop_fixable.rs:112 :15
9387 |
9488LL | for _v in [0; 32].iter() {}
9589 | ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[0; 32]`
9690
9791error: it is more concise to loop over references to containers instead of using explicit iteration methods
98- --> $DIR/for_loop_fixable.rs:120 :15
92+ --> $DIR/for_loop_fixable.rs:117 :15
9993 |
10094LL | for _v in ll.iter() {}
10195 | ^^^^^^^^^ help: to write this more concisely, try: `&ll`
10296
10397error: it is more concise to loop over references to containers instead of using explicit iteration methods
104- --> $DIR/for_loop_fixable.rs:123 :15
98+ --> $DIR/for_loop_fixable.rs:120 :15
10599 |
106100LL | for _v in vd.iter() {}
107101 | ^^^^^^^^^ help: to write this more concisely, try: `&vd`
108102
109103error: it is more concise to loop over references to containers instead of using explicit iteration methods
110- --> $DIR/for_loop_fixable.rs:126 :15
104+ --> $DIR/for_loop_fixable.rs:123 :15
111105 |
112106LL | for _v in bh.iter() {}
113107 | ^^^^^^^^^ help: to write this more concisely, try: `&bh`
114108
115109error: it is more concise to loop over references to containers instead of using explicit iteration methods
116- --> $DIR/for_loop_fixable.rs:129 :15
110+ --> $DIR/for_loop_fixable.rs:126 :15
117111 |
118112LL | for _v in hm.iter() {}
119113 | ^^^^^^^^^ help: to write this more concisely, try: `&hm`
120114
121115error: it is more concise to loop over references to containers instead of using explicit iteration methods
122- --> $DIR/for_loop_fixable.rs:132 :15
116+ --> $DIR/for_loop_fixable.rs:129 :15
123117 |
124118LL | for _v in bt.iter() {}
125119 | ^^^^^^^^^ help: to write this more concisely, try: `&bt`
126120
127121error: it is more concise to loop over references to containers instead of using explicit iteration methods
128- --> $DIR/for_loop_fixable.rs:135 :15
122+ --> $DIR/for_loop_fixable.rs:132 :15
129123 |
130124LL | for _v in hs.iter() {}
131125 | ^^^^^^^^^ help: to write this more concisely, try: `&hs`
132126
133127error: it is more concise to loop over references to containers instead of using explicit iteration methods
134- --> $DIR/for_loop_fixable.rs:138 :15
128+ --> $DIR/for_loop_fixable.rs:135 :15
135129 |
136130LL | for _v in bs.iter() {}
137131 | ^^^^^^^^^ help: to write this more concisely, try: `&bs`
138132
139- error: aborting due to 18 previous errors
133+ error: aborting due to 17 previous errors
140134
0 commit comments