@@ -77,64 +77,58 @@ LL | for _v in out_vec.into_iter() {}
77
77
= note: `-D clippy::explicit-into-iter-loop` implied by `-D warnings`
78
78
79
79
error: 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
87
81
|
88
82
LL | for _v in [1, 2, 3].iter() {}
89
83
| ^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[1, 2, 3]`
90
84
91
85
error: 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
93
87
|
94
88
LL | for _v in [0; 32].iter() {}
95
89
| ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[0; 32]`
96
90
97
91
error: 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
99
93
|
100
94
LL | for _v in ll.iter() {}
101
95
| ^^^^^^^^^ help: to write this more concisely, try: `&ll`
102
96
103
97
error: 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
105
99
|
106
100
LL | for _v in vd.iter() {}
107
101
| ^^^^^^^^^ help: to write this more concisely, try: `&vd`
108
102
109
103
error: 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
111
105
|
112
106
LL | for _v in bh.iter() {}
113
107
| ^^^^^^^^^ help: to write this more concisely, try: `&bh`
114
108
115
109
error: 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
117
111
|
118
112
LL | for _v in hm.iter() {}
119
113
| ^^^^^^^^^ help: to write this more concisely, try: `&hm`
120
114
121
115
error: 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
123
117
|
124
118
LL | for _v in bt.iter() {}
125
119
| ^^^^^^^^^ help: to write this more concisely, try: `&bt`
126
120
127
121
error: 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
129
123
|
130
124
LL | for _v in hs.iter() {}
131
125
| ^^^^^^^^^ help: to write this more concisely, try: `&hs`
132
126
133
127
error: 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
135
129
|
136
130
LL | for _v in bs.iter() {}
137
131
| ^^^^^^^^^ help: to write this more concisely, try: `&bs`
138
132
139
- error: aborting due to 18 previous errors
133
+ error: aborting due to 17 previous errors
140
134
0 commit comments