@@ -66,83 +66,83 @@ error: it is more concise to loop over references to containers instead of using
66
66
--> $DIR/for_loop.rs:107:15
67
67
|
68
68
LL | for _v in vec.iter() {}
69
- | ^^^^^^^^^^
69
+ | ^^^^^^^^^^ help: to write this more concisely, try: `&vec`
70
70
|
71
71
= note: `-D clippy::explicit-iter-loop` implied by `-D warnings`
72
72
73
73
error: it is more concise to loop over references to containers instead of using explicit iteration methods
74
74
--> $DIR/for_loop.rs:109:15
75
75
|
76
76
LL | for _v in vec.iter_mut() {}
77
- | ^^^^^^^^^^^^^^
77
+ | ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&mut vec`
78
78
79
79
error: it is more concise to loop over containers instead of using explicit iteration methods`
80
80
--> $DIR/for_loop.rs:112:15
81
81
|
82
82
LL | for _v in out_vec.into_iter() {}
83
- | ^^^^^^^^^^^^^^^^^^^
83
+ | ^^^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `out_vec`
84
84
|
85
85
= note: `-D clippy::explicit-into-iter-loop` implied by `-D warnings`
86
86
87
87
error: it is more concise to loop over references to containers instead of using explicit iteration methods
88
88
--> $DIR/for_loop.rs:115:15
89
89
|
90
90
LL | for _v in array.into_iter() {}
91
- | ^^^^^^^^^^^^^^^^^
91
+ | ^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&array`
92
92
93
93
error: it is more concise to loop over references to containers instead of using explicit iteration methods
94
94
--> $DIR/for_loop.rs:120:15
95
95
|
96
96
LL | for _v in [1, 2, 3].iter() {}
97
- | ^^^^^^^^^^^^^^^^
97
+ | ^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[1, 2, 3]`
98
98
99
99
error: it is more concise to loop over references to containers instead of using explicit iteration methods
100
100
--> $DIR/for_loop.rs:124:15
101
101
|
102
102
LL | for _v in [0; 32].iter() {}
103
- | ^^^^^^^^^^^^^^
103
+ | ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[0; 32]`
104
104
105
105
error: it is more concise to loop over references to containers instead of using explicit iteration methods
106
106
--> $DIR/for_loop.rs:129:15
107
107
|
108
108
LL | for _v in ll.iter() {}
109
- | ^^^^^^^^^
109
+ | ^^^^^^^^^ help: to write this more concisely, try: `&ll`
110
110
111
111
error: it is more concise to loop over references to containers instead of using explicit iteration methods
112
112
--> $DIR/for_loop.rs:132:15
113
113
|
114
114
LL | for _v in vd.iter() {}
115
- | ^^^^^^^^^
115
+ | ^^^^^^^^^ help: to write this more concisely, try: `&vd`
116
116
117
117
error: it is more concise to loop over references to containers instead of using explicit iteration methods
118
118
--> $DIR/for_loop.rs:135:15
119
119
|
120
120
LL | for _v in bh.iter() {}
121
- | ^^^^^^^^^
121
+ | ^^^^^^^^^ help: to write this more concisely, try: `&bh`
122
122
123
123
error: it is more concise to loop over references to containers instead of using explicit iteration methods
124
124
--> $DIR/for_loop.rs:138:15
125
125
|
126
126
LL | for _v in hm.iter() {}
127
- | ^^^^^^^^^
127
+ | ^^^^^^^^^ help: to write this more concisely, try: `&hm`
128
128
129
129
error: it is more concise to loop over references to containers instead of using explicit iteration methods
130
130
--> $DIR/for_loop.rs:141:15
131
131
|
132
132
LL | for _v in bt.iter() {}
133
- | ^^^^^^^^^
133
+ | ^^^^^^^^^ help: to write this more concisely, try: `&bt`
134
134
135
135
error: it is more concise to loop over references to containers instead of using explicit iteration methods
136
136
--> $DIR/for_loop.rs:144:15
137
137
|
138
138
LL | for _v in hs.iter() {}
139
- | ^^^^^^^^^
139
+ | ^^^^^^^^^ help: to write this more concisely, try: `&hs`
140
140
141
141
error: it is more concise to loop over references to containers instead of using explicit iteration methods
142
142
--> $DIR/for_loop.rs:147:15
143
143
|
144
144
LL | for _v in bs.iter() {}
145
- | ^^^^^^^^^
145
+ | ^^^^^^^^^ help: to write this more concisely, try: `&bs`
146
146
147
147
error: you are iterating over `Iterator::next()` which is an Option; this will compile but is probably not what you want
148
148
--> $DIR/for_loop.rs:149:15
0 commit comments