Commit 1ef566f
authored
Rollup merge of rust-lang#82030 - LingMan:init_directly, r=varkor
Use `Iterator::all` instead of open-coding it
Shorter code and by initializing to the final value directly, the variable
doesn't need to be mut.1 file changed
+2
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1382 | 1382 | | |
1383 | 1383 | | |
1384 | 1384 | | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
1389 | | - | |
1390 | | - | |
1391 | | - | |
1392 | | - | |
| 1385 | + | |
| 1386 | + | |
1393 | 1387 | | |
1394 | 1388 | | |
1395 | 1389 | | |
| |||
0 commit comments