Commit b1f04c0
grade-school, bowling: Remove unnecessary
`iter_mut()` and `or_insert()` yields mutable references, the variables
they bind to does not need to be mutable.
Previously, because of rust-lang/rust#30280
this was not considered a warning.
The fix is in rust-lang/rust#43582
This means on recently nightlies this warning is emitted.mut (#346)1 parent 8df7191 commit b1f04c0
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments