Commit 0eccb4f
committed
Use an iterator + collect instead of a for loop
The panics are removed as rust-lang/rust#65785
has made them an error and the compiler will complain anyway for ill
formed attributes.
The use _could_ allow them, technically. But this doesn't really exist:
https://github.com/search?q=allow%28ill_formed_attribute_input%29&type=code
Shows 4 occurences at time of commit. I would also think that users that
enable this, should know what they are doing ;)
Signed-off-by: Marcel Müller <neikos@neikos.email>1 parent 055ab13 commit 0eccb4f
1 file changed
+17
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
23 | 11 | | |
24 | | - | |
25 | | - | |
26 | 12 | | |
27 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
| |||
0 commit comments